swecrets

The MergeTree Family

Judgment

Learn the specialized MergeTree variants and build a decision framework for choosing among them.

What this module covers

  • ReplacingMergeTree (dedup on merge, not on insert)
  • SummingMergeTree
  • AggregatingMergeTree and the AggregateFunction column type
  • CollapsingMergeTree and VersionedCollapsingMergeTree (sign-column pattern)
  • Replication (ReplicatedMergeTree, ClickHouse Keeper)
  • Projections (alternative physical layouts)
  • MergeTree engine family decision framework

Lessons

  1. 1. ReplacingMergeTree: When Eventual Dedup Is Fine20 min
  2. 2. SummingMergeTree and AggregatingMergeTree: Pre-Aggregation Trade-offs23 min
  3. 3. CollapsingMergeTree and VersionedCollapsingMergeTree23 min
  4. 4. Replication: The Replicated* Engines22 min
  5. 5. Decision Framework: Which Engine, and Why20 min