Row vs Columnar Layout showed why columnar files read fewer bytes. A columnar engine also compresses, skips blocks and processes values in batches. This section opens up PostgreSQL 18 1,289 's row-oriented heap and DuckDB 1.5.5 61,228 's columnar storage on the same data (demos/ch04/py/duck_build.py builds booknest.duckdb, sales mart included).
MENU
Column Stores Under the Hood
How Column Stores Work Under the Hood