ClickHouse Newsletter October 2022: A cloud has arrived
ClickHouse Cloud entered public beta, storing data on shared object storage reachable by all nodes, so users no longer configure replication, sharding or rebalancing, and storage costs less than on block storage. Version 22.9 adds an experimental `annoy` ANN vector index, a KeeperMap table engine, `insert_quorum = auto`, INTERSECT/EXCEPT DISTINCT and an official TypeScript Node.js client. The query-of-the-month section shows that more threads can hurt. An S3 insert with `max_threads = 100` exhausts memory, while 4 threads beat autodetection by 33%. Under concurrent load, `max_threads = 1` tripled throughput from 3.8 to 13.1 QPS.
Related posts
- Observing in style: How Poizon rebuilt its data platform with ClickHouse Enterprise Edition
ClickHouse mediumAdept
Poizon moved its distributed-tracing observability store, which ingests petabytes of trace data daily, from self-hosted single-replica ClickHouse on cloud disks to ClickHouse Enterprise Edition on Alibaba Cloud. The new setup separates storage and compute: SharedMergeTree keeps data in object storage, compute nodes are stateless, and new nodes join via Keeper metadata sync without pausing writes or resharding. Writes are spread across nodes with round-robin, switching to weighted round-robin during restarts, and queries use parallel replicas and tuned ORDER BY keys. Reported results are up to 20M rows/sec ingest, up to 2.5x faster queries in some cases, more than 70% lower storage cost and about 60% lower overall infrastructure cost.
- Announcing On-Demand Compute: Instant compute for your most intensive workloads
ClickHouse easyNovice
ClickHouse Cloud On-Demand Compute, now in private preview, lets a query run on a shared pool of ClickHouse workers outside the service's own cluster by setting make_distributed_plan and distributed_plan_workers_num. It uses a new multistage distributed execution framework and a cost-based optimizer. Workers are leased for at least 60 seconds and reused by later queries without cold start, and concurrent queries share workers so the pool grows to the largest single request. On TPC-H SF10, it beat a 5-node autoscaling cluster on complex queries and matched it at 25 concurrent queries using 50% less compute, though short simple reads still favor the stateful cluster.
- ClickHouse Newsletter December 2022: Project all your troubles away
ClickHouse mediumAdept
ClickHouse Cloud is now generally available, adding SOC 2 Type II compliance, SLAs, AWS Marketplace availability, a Development tier from about $50/month, a SQL console, and support for PostgreSQL/MySQL engines, dictionaries and SQL UDFs. ClickHouse 22.11 brings composite time intervals, recursive `**` globs for filesystem and S3 paths, keeper retries during inserts (`insert_keeper_max_retries`), Hudi and DeltaLake engines, readonly S3 disks, and Object(JSON) nested in other types. A worked projection example on a metrics table cuts a latest-value-per-metric query from 0.9s scanning 220M rows to 7ms scanning 255 rows, with no change to the query or table schema. The issue also lists upcoming workshops and meetups and a holiday reading list.
- ClickHouse Release 26.2
ClickHouse mediumAdept
ClickHouse 26.2 ships 25 features, 43 performance optimizations and 183 bug fixes, and promotes the text index and QBit vector data type to production-ready. A new input_format_max_block_wait_ms setting, used with input_format_connection_handling, flushes streaming inserts on a time interval rather than block size. RIGHT and FULL OUTER JOINs now generate unmatched right-side rows in parallel, one thread per hash-table bucket, giving a 3.2× speedup (35s to 11s) on a self-join benchmark. Other changes include faster JSON parsing (1.2–2.8×), batched uniq and vectorized minmax index computation on insert, automatic minmax indexes for temporal columns, a primes table function, and the ClickStack UI embedded in the server binary.
- 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.