DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Paging Through a Parquet File in DuckDB: file_row_number or OFFSET?

Quality: 8/10 Relevance: 9/10

Summary

This article benchmarks paging through a large Parquet file in DuckDB, comparing LIMIT/OFFSET with a row-range approach using file_row_number. It finds a 2.53x speedup for 20M rows on a 163-row-group file and explains how row groups and optimizer rewrites influence performance, offering practical guidance on when to use file_row_number and how to determine page boundaries.

🚀 Service construit par Johan Denoyer