Thanks Alkis,

I'm in favor of updating this. Maybe, we should suggest a bandwidth rather than 
a recommended value. Looking forward to the PR. Thanks for working on this!

Kind regards,
Fokko

On 2026/11/16 19:50:22 Jigao Luo wrote:
> Thanks for raising this. I dug into it before, sharing some angles here: 
> blocking heavyweight compression, read amplification, and where the data 
> stored (local vs. cloud object storage). Long story short, it comes down 
> to implementation details and the tradeoffs around them.
> 
> On blocking compression: Snappy's sliding window is 64 KiB, while 
> Deflate and Gzip both use 32 KiB. If I'm not mistaken, a larger window 
> e.g. 1MB wouldn't improve their compression ratio. ZSTD has levels that 
> control how far back the window looks.
> 
> On cloud object storage: there's a fixed latency from the stack e.g. 
> from client and HTTPS, so reading 1 byte and reading 1 KB may take about 
> the same time. However, it really depends on how the file is stored, 
> which is not a decision at fileformat level. E.g. if the file is on S3 
> Express (which I'm not sure people actually do it in practice), the 
> latency changes again.
> 
> Last, just speaking to the GPU cuDF reader from NVIDIA: it parallelizes 
> by the number of pages, so page size affects the page count, which in 
> turn affects how well decoding and decompression perform. That said, 
> this is really only an implementation detail inside cuDF.
> 
> Best,
> Jigao
> 
> On 11/16/26 8:17 PM, PRATEEK GAUR wrote:
> > Hi Alkis,
> >
> > +1 to removing to 8KB recommendation. Size should vary depending on value
> > size
> > or data type or workload type. But to avoid writers from writing really
> > large or super
> > small pages thus hampering performance/size, it would be good to explain
> > the tradeoff well.
> >
> > Thanks Russell, for the table. I've never come across such small pages in
> > workloads.
> >
> > Best
> > Prateek
> >
> > On Mon, Nov 16, 2026 at 10:40 AM Divjot Arora via dev <
> > [email protected]> wrote:
> >
> >> +1 to increasing this recommendation. Maybe we should add some context on
> >> when to choose different page sizes rather than just an absolute value
> >> (e.g. larger page sizes would be better when using object storage).
> >>
> >> Best,
> >> Div
> >>
> >> On Mon, Nov 16, 2026 at 7:38 PM Russell Spitzer <[email protected]
> >> wrote:
> >>
> >>> That sounds reasonable, especially if we don't already follow this in the
> >>> existing implementations. From my research, that text only existed for
> >>> about a month before parquet-java changed its default to 1mb.get me
> >>>
> >>> History
> >>>
> >>> Feb 1 - 2013 -  Introduces the 8kb default
> >>> <
> >>>
> >> https://github.com/apache/parquet-java/commit/17271e7299de20b95b88140753b6e6685ecf7c6e
> >>> Mar 12 - 2013 - Changed to 1 MB
> >>> <
> >>>
> >> https://github.com/apache/parquet-java/commit/7bd223aba6584ea4caa3b40180c2c414be9e185f#diff-2d78ff0308e7e20d44fbdc1f645175b6e6fb9e8babb3255166e08fd52ff17a84R54
> >>> Previous Discussions
> >>>
> >>> Zoltan Ivanfi raises this same point (Why is the default 1mb if we
> >>> recommend 8klb)
> >>> <https://lists.apache.org/thread/244sh3j5st17cq92m89zh7m6p2ljovs3> -
> >>> https://issues.apache.org/jira/browse/PARQUET-1190
> >>> Antoine Pitrou raises the same question again
> >>> <https://www.mail-archive.com/[email protected]/msg25395.html> -
> >> Jan
> >>> Fanis noted there that even this default is rarely reached because we
> >> also
> >>> have a 20k row cap per page.
> >>>
> >>> Claude built a table of implementations and their defaults
> >>>
> >>>
> >>>
> >> +------------------------------+-----------------------+-------------------------------------------+
> >>> | Implementation               | Default page size     | Notes
> >>>                          |
> >>>
> >>>
> >> +------------------------------+-----------------------+-------------------------------------------+
> >>> | parquet-java (this repo)     | 1 MiB                 | Also 20,000-row
> >>> cap, usually hit first    |
> >>> | Arrow C++ / parquet-cpp      | 1 MiB                 |
> >>>                          |
> >>> | arrow-rs (Rust)              | 1 MiB                 |
> >>>                          |
> >>> | Iceberg                      | 1 MiB                 |
> >>> write.parquet.page-size-bytes;            |
> >>> |                              |                       | also 20,000-row
> >>> cap                       |
> >>> | DuckDB                       | 1 MiB                 | Row groups
> >> default
> >>> to 122,880 rows        |
> >>> | Polars                       | 1 MiB                 | Row groups
> >> default
> >>> to 262,144 rows        |
> >>> | Impala                       | 64 KiB                |
> >>>                          |
> >>>
> >>>
> >> +------------------------------+-----------------------+-------------------------------------------+
> >>> On Mon, Nov 16, 2026 at 12:20 PM Alkis Evlogimenos via dev <
> >>> [email protected]> wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> The configuration guide [1] recommends 8KB pages. I think we should
> >>> remove
> >>>> this recommendation.
> >>>>
> >>>> 8KB is pretty small for compression. Pages are compressed
> >> independently,
> >>> so
> >>>> small pages limit compression opportunities. They also make page
> >> indexes
> >>>> much larger: for the same data volume, 8KB pages mean roughly 128x as
> >>> many
> >>>> entries as 1MB pages. parquet-java, Arrow C++, and Arrow Rust all
> >> default
> >>>> to 1MB page size targets.
> >>>>
> >>>> Small pages can help selective reads by reducing unnecessary
> >>> decompression
> >>>> and decoding. But this is a workload tradeoff, and 8KB seems like a
> >> poor
> >>>> general recommendation.
> >>>>
> >>>> Should we remove the specific size and explain the tradeoff instead? If
> >>>> there is support I am happy to send a PR for this doc-only change.
> >>>>
> >>>> Cheers,
> >>>>
> >>>> [1] https://parquet.apache.org/docs/file-format/configurations/
> >>>>
> -- 
> Kind Regards
> Jigao Luo
> M.Sc.
> 
> Technical University Darmstadt
> Department of Computer Science / Systems Group
> Data and AI Systems
> Hochschulstrasse 10 (S2/02), Room E115
> 64289 Darmstadt
> 
> 

Reply via email to