Faster String Aggregations with Dimension Tables

DuckDB’s article examines speeding up string aggregations by replacing repeated text values with dimension-table references. It uses Dutch train-service data with 380,959 rows and 537 distinct station names; “Amsterdam Centraal,” an 18-byte name, appears 7,591 times. The example loads the dataset from a Parquet URL and sets up a GROUP BY query, explaining that processing repeated full strings across rows creates work the technique aims to reduce.

AI-written summary, checked against the cited sources. How summaries work

Image: DuckDB

Read at DuckDB