Explain why many small Parquet files cost more to read than a few large ones holding the same rows, naming the per-file listing, footer and row group costs.
Work out how many files a pipeline writes from its batch interval, its partitions and its writers, before it runs.
Choose between batching before writing and writing small then compacting, from how fresh the data must be.
Write a compaction job in DuckDB that rewrites one night of small files into one large file without losing or doubling rows.