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

MergeTree: parts and merges

Let's go back to the tape archive. New sales arrive every minute, but the archivist won't splice each one into the long tapes: he would have to rewind the whole archive for one entry. Instead, each delivery of sales goes on the shelf as a separate bundle of short tapes, already in order. When the archivist has time, he splices several bundles into one long one.

In this lesson

  • The MergeTree engine
  • Every insert is a new part
  • Merges
  • Common mistake
  • Key points