Skip to content

Lower row group size default to 256MB - #5994

Open
clairemcginty wants to merge 1 commit into
spotify:update-rg-sizefrom
clairemcginty:update-rg-size
Open

Lower row group size default to 256MB#5994
clairemcginty wants to merge 1 commit into
spotify:update-rg-sizefrom
clairemcginty:update-rg-size

Conversation

@clairemcginty

Copy link
Copy Markdown
Contributor

Lower row group size default to 256MB to relieve read-time memory pressure.

Note: Row group size is very much a tradeoff and there's no blanket one-size-fits-all best option. Each row group adds a bit of extra overhead to the file footer/row group dictionaries, however, for low-to-moderate cardinality datasets, the default compression algorithm (ZSTD) largely reduces any storage overhead.

Possibly we could go even smaller--Iceberg defaults to 128 MB row groups, for example. But I think this PR is a good starting point. In practice, without explicit configuration, Parquet writes over Dataflow seems to produce files in the realm of 200-300MB compressed (and 2-3x that size uncompressed)--thus, this change would result in a modest increase from 1 row group per file to 2-3.

@kellen kellen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants