Unlock this content

Enter your email to unlock this content for free

By continuing, you agree to our Terms of Service and Privacy Notice, and to receive occasional marketing emails.

MergeTree Family

TL;DR

The MergeTree family shares the same physical layer (parts, indexes) but differs in merge behavior. MergeTree is general-purpose, ReplacingMergeTree deduplicates, SummingMergeTree pre-aggregates sums, and AggregatingMergeTree handles complex aggregations.

All MergeTree engines share the same physical layer (parts, indexes), same indexing (primary key indexes and marks), and same replication (can be replicated or distributed). What changes is the merge behavior: how parts are combined when merges happen.

MergeTree Family Members

MergeTree

General-purpose engine for logs, events, time series, append-only data. Use for landing tables where you ingest data directly.

CREATE TABLE events ( event_date Date, user_id UInt64,

Tinybird is not affiliated with, associated with, or sponsored by ClickHouse, Inc. ClickHouse® is a registered trademark of ClickHouse, Inc.

MergeTree Family | ClickHouse for Developers