Tech News
← Home  ·  All topics

Query Aggregation

1 GoKawiil brief on this topic

Pivot details new optimization for top-K GROUP BY queries

Pivot's engineering team described a new optimization technique that speeds up GROUP BY queries which rank groups by an aggregate value and return only the top results, such as finding the 10 items with the most orders. The post explains how analytical databases like ClickHouse typically execute GROUP BY using parallel threads and partitioned hash tables, then contrasts this with Pivot's improved approach.