# Improved Hive Bucketing

DevFeed: [Improved Hive Bucketing](<https://devfeed.tech/articles/improved-hive-bucketing-8617.md>)

Original publisher: [Read original article](<https://trino.io/blog/2019/05/29/improved-hive-bucketing.html>)

Author: David Phillips

Published: 2019-05-29T00:00:00Z

Content type: article

Language: en

Sources: [Trino Blog](<https://devfeed.tech/sources/trino-blog.md>)

Topics: [data](<https://devfeed.tech/topics/data.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [data](<https://devfeed.tech/tags/data.md>), [files](<https://devfeed.tech/tags/files.md>), [latency](<https://devfeed.tech/tags/latency.md>), [partitioning](<https://devfeed.tech/tags/partitioning.md>), [performance](<https://devfeed.tech/tags/performance.md>)

## AI overview

Presto 312 supports the more flexible Hive bucketing scheme, allowing any number of files per bucket, including zero. This enables inserting data into existing partitions without rewriting the entire partition and improves write performance by avoiding files for empty buckets.

## Source excerpt

Presto 312 adds support for the more flexible bucketing introduced in recent versions of Hive. Specifically, it allows any number of files per bucket, including zero. This allows inserting data into an existing partition without having to rewrite the entire partition, and improves the performance of writes by not requiring the creation of files for empty buckets.