Loading…

Clickhouse
High-performance open-source columnar database management system designed for real-time analytics and data warehousing at scale
- 292 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Why ClickHouse Cloud wins at real-time analytics
In CostBench, ClickHouse Cloud delivered 412×–1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery Capacity, and Redshift Serverless on a 113.2-billion-row stock-quote workload. The benchmark streamed the same data into all five systems while running analytical queries throughout ingestion, tracking summary freshness, preparation cost, query cost, and query runtime. ClickHouse Cloud prepared all 113.2 billion rows for $28.69, kept daily summaries in sync with raw data during inserts, and logged about $0.05 in query cost with 1.03 minutes of accumulated runtime. The lead comes from sorting and pre-aggregating incoming data in memory and writing sorted, compressed columnar parts to disk, so raw history and summaries advance together. Production examples include Tesla ingesting one billion rows per second, Cloudflare sub-two-second queries over 1.61 quadrillion events, and Artemis cutting an investigative lookup from 12 seconds to 200 milliseconds.
The Agentic Analytics Benchmark: ranking tables and labeling failures with Jev
Jev is a System One model that returns typed answers with calibrated probabilities in 70–500 ms without generating text, used for table ranking and failure labeling. On the Agentic Analytics Benchmark, Jev labeled 277 failures across 4 models in under a second, revealing wrong data selection as the largest bucket, mostly entity resolution errors like wrong identifiers or unresolved named entities. Jev also ranked 18 warehouse tables per question at nDCG@10 0.951 in 0.4 seconds with no fine-tuning or gold data. The labeler flagged 18 likely grader errors under a 0.65 threshold, traced to a comparator that returns not equal on row-count differences before linking columns, now tracked as a bug. However, feeding these rankings as schema hints left accuracy flat across 20 models, and development-set savings did not transfer to the held-out board.
Expanding Customer Notifications for ClickHouse Managed Postgres
ClickHouse Managed Postgres launched storage alerts in August, warning at 85% disk usage, and those alerts have already helped customers identify issues like unused replication slots. The service now adds five targeted notifications: inactive replication slots, planned switchovers, unplanned failovers, long-running transactions, and connection-usage warnings. The replication-slot notification triggers when a logical slot retains over 10 GiB of unconfirmed WAL data for two hours, excluding managed CDC slots, and includes slot names. Planned-switchover and unplanned-failover notifications each specify the affected service and completion time, distinguishing scaling events from failure recovery. Long-running transactions open for at least two hours and connection usage at 95% of the limit trigger warnings with transaction age, helping operators check idle sessions, locks, or pool settings before impact, with delivery via console, email, or Slack.
How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability
Shipsidekick, a logistics platform, replaced Neon with ClickHouse Managed Postgres after struggling with frequent outages, pool exhaustion, and slow support. The migration took a single weekend, with ClickPipes replicating 500 GB of data in 4-5 hours. Since the move, CPU usage dropped from 100% to 5-10%, cache hit rate rose from 30-35% to 99%, and queries run about 10x faster. The team resolved a partial unique index conflict during replication by dropping and re-creating the index. They also implemented timeouts on a read-only role to prevent AI agent queries from impacting primary performance.
Trace and evaluate Cursor agents with Langfuse, powered by ClickHouse
Langfuse is an open-source platform whose Observability plugin captures Cursor agent traces, including model calls, tool executions, and token usage, with each prompt creating a “Cursor Turn”. ClickHouse powers Langfuse v4 analytics with a wide observations table storing user, session, tags, and environment, avoiding joins for team-wide cost and latency aggregations. To set up, create a Langfuse project, install the plugin from the Cursor Marketplace, place API keys in a config file, and restart Cursor. Each trace contains LLM observations with conversation history, tool observations for Shell, Read, and MCP actions, nested subagent observations, and context compaction events, all grouped into sessions. Teams use dashboards to find expensive turns, create project rules, build datasets from real sessions, and apply evaluators (LLM-as-a-judge, human review) to compare cost and completion before deploying, with CI via a GitHub Action.
Front-end observability at scale: How OpenReplay captures billions of daily events in real time with ClickHouse
OpenReplay is a self-hosted session replay and product analytics platform that helps developers reproduce bugs by showing them exactly what a user did. The team replaced Postgres with ClickHouse to handle billions of behavioral events per day, using a single TTL setting to end weekend-long manual retention cleanups and dropping session search times from up to 10 seconds to about one second. Materialized views in ClickHouse reduced the time to modify data pipeline transformations from two days to half a day by centralizing logic that once required separate Go workers. The largest customers run a single vertically scaled ClickHouse instance ingesting up to 6 TB daily, with sub-second queries enabled by a query cache. The database schema consists of two main tables, and native JSON support allows custom events to be inserted and queried as columns for funnels, heat maps, and flow charts.
Running ClickHouse on NVIDIA Vera CPU: Is your favorite database up to the challenge?
ClickHouse engineers benchmarked the standard binary on an early-access NVIDIA Vera CPU without any database customizations, and it topped the ClickBench hardware leaderboard by a wide margin. Vera’s 176 Arm-v9.2 cores with 352 threads, 164 MB L3 cache, and up to 1.2 TB/s memory bandwidth require databases to scale linearly to fully utilize resources. Three micro-benchmarks—filter evaluation, aggregation, and joins—on a 1 TB in-memory table of 62.5 billion random strings measured scaling efficiency across thread counts. A simple LIKE filter achieved 45x speedup at 256 threads with throughput reaching ~900 GB/s, hitting memory bandwidth limits, while a CPU-intensive regex filter scaled almost perfectly up to 176 physical cores (163x speedup, 92.88% efficiency) and the join benchmark showed similar near-linear scaling. The benchmarks simulate agentic query patterns, and ClickHouse is adding SVE2 SIMD support via PR #122860 to further improve vector processing on Vera.
The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5
ClickHouse added five models to its Agentic Analytics Benchmark—GPT-6 Astra, Luna, Sol, Claude Opus 5.5, and Claude Sonnet 5.5—using the same 201 analytics questions, synthetic warehouse, and judge panel. All five scored between 68.7% and 69.7%, statistically tied and mid-board, while Claude Fable 5.1 retains the top spot at 76.6%. Claude Sonnet 5.5 delivered the largest improvement, raising accuracy from 62.2% to 68.7% and eliminating budget-limit failures while reducing median turns from 9.1 to 3.5 and cost to about five cents per question. The gain concentrated on the 83 questions requiring the dimensional CRM layer, where Sonnet 5.5 scored 73.5% versus 62.7% for Sonnet 5, and the harness was updated with engine pinning and credential preflight. Contamination probes found no memorization of anonymized entity names, and the board now ranks 34 models with a frozen question set.
Postgres wait events, now in Query Insights
Query Insights for ClickHouse Managed Postgres now includes wait event metrics that show what active sessions are waiting on, such as disk I/O, locks, or CPU. The Active sessions by wait type chart groups activity by wait_event_type, with categories like IO, Lock, and CPU, where CPU means a session is active with no reported wait event. A Waits table breaks down individual wait_event values, showing their average active sessions and share of total load; in the example, lock waits account for about 42% of load. Two additional charts, Blocked sessions and Lock wait time, display the number of sessions waiting on locks and the p50, p95, and maximum wait durations, with maximum lock waits repeatedly above 100 seconds. Wait event metrics are also available through the Managed Postgres Prometheus endpoint for custom Grafana dashboards and alerting, and ClickHouse Agents can help investigate wait events alongside slow queries.
Introducing the (blazing fast!) native TCP client for .NET
ClickHouse has released an experimental native TCP client for .NET, available in the ClickHouse.Driver package. Unlike the HTTP client, which requires two format conversions between column blocks and rows, the TCP client uses the native protocol to transfer data as column blocks, enabling zero-allocation, zero-copy reads and writes. In benchmarks, this achieves 1.5-2x faster speeds, over 99% fewer GC allocations, streamed reads of 1.1 million rows per second (115 million values), and parallel inserts at 877,000 rows per second (832,000 from POCOs), all on modest hardware. The client supports three API tiers—column streaming for maximum performance, POCO mapping with compiled per-column loops, and object arrays—and includes a migration path from HTTP. However, it remains experimental, lacking ADO.NET, binary JSON, JWT authentication, and alternative formats, and it only runs on .NET 8 or later.
OLTP is expensive, you can ClickHouse it.
PostgreSQL’s ACID guarantees cause substantial write amplification: each write flushes WAL for durability, copies rows via MVCC for isolation, and updates every affected index, amplifying 100 bytes of row change into tens of kilobytes of I/O. Costs scale linearly with data size, and even sharded Postgres offers only linear scaling with added coordination overhead, so growing datasets drive rising bills. The post proposes offloading settled, rarely-changing data to ClickHouse, whose columnar compression shrinks datasets 10-30x and whose cloud offering costs about 5x less than comparable Postgres infrastructure while also reducing Postgres compute load through fewer indexes. ClickHouse builds indexes in background batches and runs aggregations at roughly 100x lower cost than Postgres. ClickHouse Cloud provides WalShadow for millisecond-latency CDC and pg_clickhouse FDW, enabling an application pattern that cuts the cost of serving settled data by an order of magnitude.
October 2026 newsletter
The October 2026 ClickHouse newsletter announces CostBench results where ClickHouse Cloud delivered 752× better performance per dollar than Databricks and 438× to 512× better than BigQuery on real-time analytics workloads. The 26.9 release extends LIMIT with AFTER and UNTIL boundary conditions, adds incremental refresh for materialized views, and introduces CREATE TOKEN for time-limited credentials. Executable user-defined functions are now generally available on ClickHouse Cloud, supporting precompiled Rust, Go, C++, and JavaScript binaries with outbound network access and a deterministic flag. Featured community member Hoang Minh V has had over 100 pull requests merged since May, including a fast path for PromQL aggregations and fixes to TimeSeries reads. The newsletter also covers the official Apache Airflow provider for ClickHouse, the chDB durable layer for agent memory, and a Postgres round-up on memory safety and local NVMe storage.
Scaling ClickStack alerting with built-in anomaly detection
Managed ClickStack now supports statistical anomaly detection on query-builder charts using z-scores, allowing teams to move alerting workloads from tools like Grafana. The detection calculates the expected value from a moving average of seven one-minute buckets and the standard deviation from a two-hour baseline, with a 5% minimum change threshold to prevent false positives from stable metrics. Users configure sensitivity, baseline duration, and direction of change, and preview how often the alert would have fired over the previous 24 hours, with the chart updating as settings are adjusted. The alerting framework scales to tens of thousands of alerts through an improved scheduler and sharding that distributes evaluation across multiple workers, with a backfill mechanism for skipped evaluations and improved search, filtering, and evaluation histories in the alerts UI. Future plans include support for seasonality, median-based estimates for noisy data, and alerting on PromQL queries.
How Ridgeline unified Iceberg and ClickHouse into one analytics layer for investment management
Ridgeline, a cloud-native investment management platform, rebuilt its performance analytics layer after Postgres could not handle the scale of larger customers. The team evaluated Redshift, SingleStore, Trino over Iceberg, and a custom in-memory engine before choosing ClickHouse for its analytical performance and lower cost. They adopted ClickHouse Cloud on AWS, using separate organizations for staging and production and per-customer services, with assistance from ClickHouse engineers. Historical data lands in Apache Iceberg via a Spark pipeline and is queried through ClickHouse, while recent data is written directly into ClickHouse. The architecture enabled Ridgeline to serve customers 10x larger than before and more than double its live customer count.
Why Redshift Serverless can’t match ClickHouse Cloud for real-time analytics
CostBench streamed 113.2 billion stock-market quotes into both systems while four aggregate queries ran every ten minutes and two drill-down queries ran every hour. ClickHouse asynchronous inserts order raw data and build pre-aggregations during ingestion, while Redshift relies on separate background sorting and materialized view refreshes. ClickHouse Cloud led in preparation cost ($28.69 versus 522.03), normalized query cost ( 0.05 versus $24.97), and accumulated query runtime (58.12 seconds versus 1.69 hours). The combined score shows ClickHouse Cloud delivered 1,996× better end-to-end performance per dollar in this continuous-ingestion comparison. The difference originates in the preparation path: ClickHouse makes data query-ready during inserts, whereas Redshift’s streaming, sorting, and refresh steps advance independently.
Postgres at Open House NYC
At ClickHouse Open House NYC, the team announced WalShadow, an open-source engine that replicates Postgres into ClickHouse from the physical WAL, achieving sub-second latency and high throughput. They also launched ClickHouse Managed Postgres on Google Cloud in private preview, offering Postgres on local NVMe storage with native CDC into ClickHouse. The chdb Postgres extension was released, enabling fast imports from cloud storage using the embeddable ClickHouse engine. A live demo showed WalShadow keeping ClickHouse under 400 ms behind during a simulated trading platform with 50,000 trades per second, and detecting a fraud burst in under 500 ms compared to over 15 seconds with ClickPipes. The integrated stack aims to provide world-class Postgres for transactions and ClickHouse for analytics, with WalShadow as a key step toward unifying OLTP and OLAP.
Chasing that 32 ms tail latency in ClickHouse
A customer observed an extra ~32 ms tail latency on simple SELECT queries after idle periods in ClickHouse’s Native TCP protocol. The root cause was that after a TCP idle period (RTO), the congestion window resets to initcwnd (8 MSS), and with TCP_NODELAY enabled, each metadata packet (ProfileEvents, Logs, Progress) becomes a separate TCP segment, exceeding the small window and forcing an additional round trip. The ClickHouse Native protocol sends these metadata packets between Data and EndOfStream, and the unbatched writes caused the problem. The team reproduced the issue deterministically using Linux network namespaces and tc to simulate 32 ms RTT and initcwnd 8. They fixed it by batching those metadata packets into a single buffer write at the application layer, reducing tail latency from ~32 ms to ~1 ms, as confirmed by a Go client program that measured the time between the last Data packet and EndOfStream.
How iSAM Funds built an options research platform for a 10,000x data problem with ClickHouse Cloud
iSAM Funds, a UK-based systematic asset manager, built an options research platform on ClickHouse Cloud to handle the 10,000x data fan-out from underlying instruments to related options. Migrating from Postgres, the team achieved 35-50x compression and increased single-core ingestion from 8,000 to 800,000 rows per second, while ClickHouse’s native Apache Arrow support eliminated encoding reshuffling. ClickHouse’s columnar storage and vectorized execution made queries fast enough to run on demand, allowing the team to drop pre-computed rollups and materialized views and remove a layer of pipeline complexity. The managed service integrates with iSAM’s AWS footprint and enterprise authentication, pushes backups to iSAM’s own buckets for developer use, and lets them scale instances up for large backfills then down to control costs. The platform gives researchers fast, interactive access to full options history, shortening the time from hypothesis to tested strategy.
How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight
Clera, an AI talent agent representing 200,000+ candidates, migrated its 500 GB production Postgres database to ClickHouse Managed Postgres after outgrowing its previous provider. The previous database suffered from point lookups taking multiple seconds, 100% CPU for six straight days, and timeouts. Clera evaluated Supabase, Neon, PlanetScale, and ClickHouse, choosing ClickHouse for its local NVMe storage that avoids network-attached disk latency. In sysbench TPC-C testing, ClickHouse showed 16–42% higher throughput than the runner-up. The team migrated 500+ tables from the EU to the US overnight using ClickPipes and manual replay, with production traffic still hitting the database. After migration, CPU usage dropped to 10–20%, and no settings have been changed since the cutover.
Introducing JWT authentication in ClickHouse Cloud
ClickHouse Cloud now supports JWT authentication for services running version 26.4 or later, allowing short-lived tokens from OpenID Connect providers such as Okta and Microsoft Entra to replace long-lived passwords. When a client presents a token, ClickHouse verifies its signature and claims, then creates an ephemeral in-memory user with the roles and grants specified in the token. The user disappears after the token’s expiration, removing the need for CREATE USER or DROP USER commands. Roles are managed once in ClickHouse and assigned via token claims; identity and group membership are governed by the provider. The feature also handles definer views by writing persistent shadow users, and it supports RS256 keys from version 26.4 and EC keys from version 26.8.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.