Design the objects around the reads
How object layout and Iceberg table storage affect the efficiency and reliability of an S3-backed data lake. · advanced
An S3 prefix is part of an object key, not a directory with table semantics. Separate raw arrivals from curated tables so ingestion files can be retained independently of analytical rewrites. A path such as curated/events/event_date=2026-01-01/ expresses an organization convention; it does not itself enforce a schema or transaction boundary.
For analytical tables, Parquet or ORC lets engines read selected columns, while compression reduces stored and transferred bytes. Partition pruning avoids irrelevant partitions; column projection avoids unneeded columns within the selected files. Choose partition fields from common selective predicates, not merely from fields available in the source.
Excessively fine partitions, such as one per unique event identifier, tend to produce small files. Each file adds planning, request, and scheduling overhead. Compaction combines small files, but making every partition one enormous file can reduce useful read parallelism. Tune file sizes against the engine and workload rather than treating a single size as universally optimal.