Skip to content
Theory · ClickHouse: Columns, MergeTree, Sort Key, Partitions · lesson 9 of 13

Partitions

The bundles of tapes in the archive do not lie on one shelf but in boxes by month: each new delivery of sales goes into its month's box. The archivist splices bundles only within one box. When the time comes to throw out August, he does not look for August's entries on the tapes but carries out the whole box.

In this lesson

  • PARTITION BY
  • Which parts a query reads
  • What partitions are for
  • Common mistake
  • Key points