Quick reminder that Materialized Views in Clickhouse create a new physical table that does not inherit the source table’s PRIMARY KEY, PARTITION or ORDER BY. You have to add those to the view definition, otherwise instead of say 20x faster, your queries may end up say 5x slower!
0
0
1
20
0