Why Databricks can’t match ClickHouse Cloud for real-time analytics
In a vendor-run CostBench test, ClickHouse Cloud and Databricks each ingested a stream of 113.2 billion stock quotes, targeting 1M rows/s, while aggregate and drill-down queries ran on schedule. ClickHouse Cloud scored 752× better on end-to-end performance per dollar. Its preparation cost was $28.69 versus $695.60, its normalized query cost about $0.05 versus $2.65, and its accumulated query runtime 56 seconds versus 29 minutes. The gap comes from where preparation happens. ClickHouse sorts and pre-aggregates each async-insert block on the ingest nodes. Databricks splits the same work across Zerobus ingestion, asynchronous liquid clustering via Predictive Optimization, and a separate incremental materialized-view refresh pipeline, so its summaries can lag behind incoming data.
Related posts
- Why ClickHouse Cloud wins at real-time analytics
ClickHouse mediumAdept
In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.
- Why Redshift Serverless can’t match ClickHouse Cloud for real-time analytics
ClickHouse hardMaster
In a CostBench continuous-ingestion test streaming 113.2 billion stock quotes at a target of 1M rows/s, ClickHouse Cloud scored 1,996× better end-to-end performance per dollar than Redshift Serverless. The score is preparation cost plus normalized query cost, multiplied by accumulated query runtime. The measured components were $28.69 vs $522.03 preparation (Redshift's MSK plus a 32-RPU writer), $0.05 vs $24.97 query cost, and 58 seconds vs 1.69 hours of runtime. The gap traces to ClickHouse sorting and pre-aggregating each async-insert block at insert time into MergeTree and AggregatingMergeTree tables. Redshift instead runs streaming ingestion, background sorting and incremental MV refreshes as separate stages, so queries hit unfinished preparation.
- Why Snowflake can’t match ClickHouse Cloud for real-time analytics
ClickHouse mediumAdept
In the CostBench continuous-ingestion benchmark (113.2 billion stock quotes streamed toward 1M rows/s while aggregate and drill-down queries ran on the freshest data), ClickHouse Cloud scored 412× better end-to-end performance per dollar than Snowflake. It led on preparation cost ($28.69 vs $79.42), normalized query cost (~$0.05 vs $15.99) and accumulated query runtime (1.03 minutes vs 2.13 hours). ClickHouse's async inserts sort raw data and update incremental materialized views from the same insert block on a 4-core HA ingest service, so summaries have zero lag. Snowflake splits this across Snowpipe Streaming and a serverless, non-configurable MV refresh, which leaves pre-aggregations about 1.4–2 minutes behind and pushes more work onto queries.
- CostBench: Putting real-time analytics to the test
ClickHouse mediumAdept
CostBench measures real-time analytics performance per dollar as one continuous workload: more than 100 billion NBBO stock quotes are streamed at a target of 1 million rows/sec while aggregate and drill-down queries run on a fixed schedule. Its key idea is the fresh-data path, meaning columnar ingestion, maintenance of pruning-friendly sort/cluster layouts, and incremental pre-aggregation. That path carries its own cost, and when it falls behind it pushes scanning and aggregation work onto the query engine. Using each vendor's recommended push-based ingest path, ClickHouse Cloud had the lowest preparation cost, query-serving cost and runtime. Snowflake, Databricks, BigQuery and Redshift Serverless delivered 412–1,996× worse end-to-end performance per dollar, though the benchmark is run and reported by ClickHouse.
- Why BigQuery can’t match ClickHouse Cloud for real-time analytics
ClickHouse mediumAdept
In the CostBench benchmark, ClickHouse Cloud and BigQuery ingest 113.2 billion stock quotes at a target of 1M rows/s while aggregate and drill-down queries run continuously, and ClickHouse Cloud scores 438× better end-to-end performance per dollar under BigQuery Capacity pricing and 512× under On-demand. ClickHouse wins all three components: preparation cost ($28.69 vs $243–265), normalized query cost (~$0.05 vs $4.75–24.80) and accumulated query runtime (58 seconds vs 49 minutes). The gap is traced to the fresh-data path. ClickHouse ingest nodes sort raw data and compute incremental materialized-view aggregates from the same async-insert flush. BigQuery's Storage Write API, automatic reclustering and MV refresh (minimum one-minute interval) each advance separately, which leaves more work for queries.