ClickHouse TTL: Merge-Driven Retention, Not a Cron Job
TTL in ClickHouse is evaluated per-part during background merges, not by a cron job. Learn how to compile a 30-day drop policy, verify with system.ttl, and avoid common pitfalls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
TTL in ClickHouse is evaluated per-part during background merges, not by a cron job. Learn how to compile a 30-day drop policy, verify with system.ttl, and avoid common pitfalls.
Choosing the right MergeTree variant for ClickHouse time‑series workloads balances deduplication, aggregation, and write performance. This guide compares MergeTree, ReplacingMergeTree, SummingMergeTree, AggregatingMergeTree, and CollapsingMergeTree, explains trade‑offs, and shows a concrete example.