Skip to content
Opensource internals
  • Posts

Sorting

ClickHouse Sorts in Parallel: Partial Sort, Merge Sorted Streams and External Sort

Oct 21, 2026 17 min read Jay Hubbert

ClickHouse never sorts the whole dataset at once. It sorts each chunk, throws away rows that can’t make the top-N, merges the sorted streams, and spills runs to disk when…

ClickhouseInternalsSortingPerformance

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·