CollapsingMergeTree Vs ReplacingMergeTree

466 views
Skip to first unread message

Mai Abdel-Qader

unread,
Jul 25, 2019, 5:20:16 PM7/25/19
to ClickHouse
Hello,

What is the most suitable engine of table that I keep updates its column depending on primary key? Some updated columns are strings and the others numeric.

Should I go with CollapsingMergeTree or ReplacingMergeTree? 

And what is the frequency of updates is high, should I go with VersionedCollapsingMergeTree?


Thanks a lot,
Mai

Denis Zhuravlev

unread,
Jul 25, 2019, 5:31:33 PM7/25/19
to ClickHouse
OLAP data is mostly immutable. CH does not have engines which allows frequent updates.

Check external dictionaries for mutable dimensions.

Mai Abdel-Qader

unread,
Jul 25, 2019, 5:38:42 PM7/25/19
to ClickHouse
What if the updates are not that frequent? With which engine should I go?

Are you aware of specific external dictionaries that might help me to handle mutable dimensions?

Denis Zhuravlev

unread,
Jul 25, 2019, 5:45:20 PM7/25/19
to ClickHouse
>What if the updates are not that frequent? With which engine should I go?

It depends of your requirements. Try Replacing first.

>Are you aware of specific external dictionaries that might help me to handle mutable dimensions?

Mai Abdel-Qader

unread,
Jul 27, 2019, 12:51:04 PM7/27/19
to ClickHouse

Thanks a lot.

In general what is the difference between CollapsingMergeTree and ReplacingMergeTree?
Reply all
Reply to author
Forward
0 new messages