Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 9 min read Opinion easyNovice

What to look for when selecting a real-time analytical database

Real-time analytics means low-latency queries over continuously changing data, so it is a system property spanning time to ingest, time to transform and prepare, and time to query, not just query speed. Batch-era warehouses struggle for architectural reasons: optimistic concurrency that degrades under many concurrent writers, catalog or manifest refreshes before writes become visible, scheduled materialized views, caches invalidated by ingestion, bolted-on real-time tiers, and separate systems for text, vector and JSON queries. The evaluation checklist asks whether ingestion scales without hurting queries, whether data is queryable within seconds, whether views update incrementally on insert, and whether one engine serves all query types at bounded cost. ClickHouse's Keeper-based coordination and incremental materialized views are presented as examples, along with a customer case citing data latency cut from up to 1.5 hours to under 5 seconds.

Assumes: data warehouse basicsmaterialized views

Related posts

  • The end-to-end cost-performance of real-time analytics: Snowflake vs. ClickHouse Cloud

    ClickHouse mediumAdept

    CostBench measures real-time analytics cost-performance end to end: continuous ingest at a fixed 1 million rows/sec, keeping raw data ordered for pruning, maintaining fresh pre-aggregations, and serving queries continuously while all of that runs. Using a 12-column stock-quotes dataset sorted by (sym, t), it compares ClickHouse Cloud against two Snowflake setups. The ClickHouse Cloud setup uses a small separate ingest service, a MergeTree raw table and an AggregatingMergeTree incremental materialized view. One Snowflake setup uses standard tables with serverless clustering and materialized views on a Gen2 X-Small ingest warehouse. The other uses Snowflake Interactive Tables. Read compute is matched at 16 Graviton3 cores. Dashboard queries run every 10 minutes and drill-down queries every hour against constantly changing data, with identical client work for both systems.

  • 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.

  • ClickHouse vs Snowflake for Real-Time Analytics - Comparing and Migrating

    ClickHouse mediumAdept

    ClickHouse Cloud and Snowflake both use shared-storage architectures over object storage with local SSD caches. They differ in compute model: Snowflake uses t-shirt-sized warehouses at a 1:2 CPU-to-memory ratio, while ClickHouse Cloud uses auto-scaling services at 1:4. They also differ in query caching, in concurrency limits (Snowflake defaults to 8 concurrent queries per warehouse, ClickHouse allows up to 1000 per node), and in feature pricing. For real-time analytics, ClickHouse claims lower latency and lower cost, since always-on dashboards negate Snowflake's idle-suspend savings and its clustering and materialized views raise per-credit cost by 1.5x. The post also maps Snowflake clustering keys to ClickHouse ORDER BY and sparse primary indexes, contrasts projections with materialized views, and outlines unloading data from Snowflake and importing it into ClickHouse.

  • Building a Unified Data Platform with ClickHouse

    ClickHouse mediumAdept

    Synq, a data observability startup, consolidated its user-facing application, internal BI, in-app analytics and ML training data onto a single ClickHouse Cloud cluster after Postgres with a time-series plugin struggled with large backfills. Naive per-message inserts from its Go ingestion service caused part explosions and insert timeouts. Buffer tables fixed that but used too much cluster memory, so the team settled on Async Inserts and handled duplicates with ReplacingMergeTree plus LIMIT 1 BY on a surrogate key. Materialized views feeding query-specific tables with ORDER BY keys matched to access patterns cut scanned data by an order of magnitude and keep API latencies around 100ms, while dbt builds auditing and daily-aggregated analytics tables without separate ETL.

  • Streaming Real-Time Visualizations with ClickHouse, Apache Arrow and Perspective

    ClickHouse mediumAdept

    A ~100-line browser demo streams forex tick data from ClickHouse into the Perspective visualization library (Rust/C++ compiled to WebAssembly) using Apache Arrow over HTTP. ClickHouse has no push or WebSocket API, so the client polls a sliding time window every ~30–50ms. The query filters on the primary-key timestamp and uses a window function over a slightly widened range to compute per-pair price change. Perspective keeps only the latest 20k rows. Queries run in under 10ms on 11.5B rows, latency is dominated by HTTP round trips, and 20 clients (~200 QPS) used under 2 cores. Polling can miss rows under eventual consistency and insert latency, which motivates planned streaming queries, and a full-dataset speed test uses the ArrowStream format with the Arrow JS library to feed data in chunks.

The quest for software engineering knowledge.

Look:
Layout: