Menu

Post image 1
Post image 2
1 / 2
0

FINAL in ClickHouse Isn’t as Expensive as It Used to Be

DEV Community·Mohamed Hussain S·18 days ago
#TV4hN8eQ
Reading 0:00
15s threshold

For a long time, the advice around FINAL in ClickHouse was pretty straightforward: Avoid it whenever possible. And honestly, that advice existed for good reasons. Older versions of ClickHouse could make FINAL extremely expensive depending on: table size partitioning number of parts merge state query patterns So people started treating FINAL almost like a red flag. But modern ClickHouse has changed a lot. And I think the conversation around FINAL deserves a bit more nuance now. Why FINAL Existed in the First Place To understand why FINAL was historically considered expensive, you first need to understand what it actually does. In engines like: ReplacingMergeTree CollapsingMergeTree VersionedCollapsingMergeTree ClickHouse does not immediately rewrite rows in place.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More