-
MergeTree: The most common engine, ideal for append-only, immutable data.
- Stores data in parts and merges them in the background
- Never deletes records during merges
-
ReplacingMergeTree: Replaces old rows with new ones during merges.
- Useful for deduplication or storing the latest version of each record
-
SummingMergeTree: Sums up numeric columns for rows with the same sorting key.
- Ideal for pre-aggregating data
-
AggregatingMergeTree: Performs incremental aggregation during merges.
- Efficient for complex aggregations on large datasets
-
CollapsingMergeTree: Handles state changes by “collapsing” pairs of records.
- Uses a sign column to determine which rows to collapse
- Requires careful ordering of inserts
-
VersionedCollapsingMergeTree: An improved version of CollapsingMergeTree.
- Allows inserting data in any order
- Uses an additional version column for more flexible collapsing
Introduction
Table engines
ClickHouse table engines in Propel.
Propel offers various table engines, each optimized for specific use cases. The MergeTree family is the primary group of table engines, designed for high-performance inserts and reads.
Here’s an overview of the key MergeTree engines: