Loading…

Clickhouse
High-performance open-source columnar database management system designed for real-time analytics and data warehousing at scale
- 294 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
ClickHouse announcements at AWS re:Invent 2026
ClickHouse announced a five-year, $1.5 billion-plus Strategic Collaboration Agreement with AWS at re:Invent 2026. It joined the AWS Semantic Layer Partner Cohort to provide real-time analytics with a semantic layer for agents. Amazon S3 Tables support is now generally available in ClickHouse Cloud, and AWS Glue Data Catalog support is available in open source ClickHouse. Schema Advisor, a private preview tool built on Amazon Bedrock, recommends and deploys schema changes with zero downtime. Cross-region replication and secure outbound connections via AWS PrivateLink are also in private preview, and first-party ClickHouse support in dbt Platform is in public beta.
How we built an AI agent you can trust with your production tables
ClickHouse Cloud announces Schema Advisor, an end-to-end AI-assisted experience for schema changes now in Private Preview. Schema changes in ClickHouse heavily influence performance, but figuring out what to change, testing, and deploying with zero downtime is often deprioritized. Schema Advisor uses deterministic tests on query logs to generate recommendations, then LLMs to build a deployment plan, and Temporal workflows to execute the plan safely. Impact analysis runs against a sample table in the same service or an isolated sandbox, comparing query time, rows scanned, and data read. Deployment uses either a full table rebuild with EXCHANGE TABLES for zero downtime or a direct ALTER TABLE for changes like indexes and projections.
Hints and hazards: pg_plan_advice in PG19
Postgres 19 introduces pg_plan_advice and pg_stash_advice, two contrib modules that provide a query hint experience without affecting all queries or SQL syntax. pg_plan_advice works at the session level via SET commands, while pg_stash_advice applies hints to specific query identifiers. The extensions support specifying scan method, join order, join method, parallelism, partitionwise joins, and semijoin uniqueness. They work by telling the planner not to pick unselected options, but if no viable plan exists the advice is partially or fully ignored, and there is no check that the advice is good. The article demonstrates that while hints can dramatically improve performance in some scenarios, shifting data distributions can make them counterproductive, as shown by a bitmap heap scan hint that went from a 150x improvement to a 7,000x degradation.
How well is ClickHouse tested? A detailed view of increasing our own coverage
ClickHouse, with 2.6 million lines of C++ and over 80 daily pull requests, needed an automated way to assess test coverage. The team implemented Clang source-based coverage instrumentation, running 23 CI shards every three hours to produce a merged report. As of November 2026, the tests cover 91.8% of lines, 81.0% of branches, and 91.8% of functions. A differential coverage check on every PR compares the change against up to seven master baselines and gates merges if line coverage drops more than 0.3 percentage points. The team plans to pursue mutation testing and reduce the noise floor from background threads in future iterations.
Durable and auditable workflows with DBOS and ClickHouse Managed Postgres
DBOS is an open-source, Postgres-native durable execution library that stores workflow state, step checkpoints, queues, schedules, and messages directly in Postgres, enabling failure recovery from the last completed step without restarting. ClickHouse Managed Postgres provides the operational database for running DBOS workflows with fast NVMe performance. To manage storage growth while retaining history for auditing, WalShadow replicates workflow data from Postgres to ClickHouse by reading the Postgres Write-Ahead Log, with soft deletes that keep tombstoned rows via metadata columns _is_deleted and _commit_ts. This retains execution history for years in ClickHouse, such as three years for compliance, while removing it from Postgres after a shorter retention like seven days, recording deletion timestamps. Developers can then query historical and deleted workflows in ClickHouse to analyze failures and build dashboards without a custom data export pipeline.
PostgreSQL 19 on ClickHouse Managed Postgres, from day one
ClickHouse Managed Postgres made PostgreSQL 19 generally available on its release day, November 19, 2026, without a preview or waitlist. The engineering team leveraged the PGDG APT repository for the Postgres server and third-party extensions, packaging only first-party extensions themselves. A readiness checklist, VM images built from RC2, extension packaging, control plane feature flags, and end-to-end stress testing across AWS and GCP enabled the rapid rollout. Key PostgreSQL 19 features include the REPACK command with a CONCURRENTLY option for online table rewrites, the WAIT FOR LSN command for read-your-writes on replicas, logical replication improvements for sequences and EXCEPT, and the pg_plan_advice extension for plan stabilization. Performance benchmarks showed stable or slightly improved TPS compared to PostgreSQL 18, with new defaults such as jit off and lz4 compression.
Your agents don't care that you're a batch shop
Financial services firms that run batch data pipelines often conclude they have no real-time workload, but AI agents change that math. Agents convert a single business question into tens of exploratory queries, run in parallel, and never stop, even when querying yesterday’s data. The key property is not data freshness but query efficiency: an engine that finishes a query in 200 ms instead of 20 seconds frees cores 100 times sooner. On a fixed cluster, that efficiency allows the same hardware to absorb far more agent desks without scaling up or incurring budget overruns. Firms should measure compute-seconds per query on their current platform, count queries per agent task, and compare hold times on a real-time engine to control the agent compute bill.
What is ClickHouse Security? A technical overview of the agentic SIEM built on ClickHouse
ClickHouse Security is an agentic SIEM built on ClickHouse, the integrated offering between RunReveal and ClickHouse Cloud, now in private preview. It ingests logs from over 120 cloud, identity, and SaaS sources via webhook, API polling, or object storage, with built-in pipelines that filter, route, and enrich data before storage. Detections run as scheduled SQL rules or streaming Sigma rules, and alerts can open cases with a timeline of queries, results, notes, and indicators. AI agents triage alerts, tune and generate detections, and hunt threats, and users can build custom agents with the MCP server, API, CLI, and Slack bot. Everything is queryable with SQL on ClickHouse, where columnar storage and compression keep long retention affordable and queries fast.
ClickHouse expands AWS strategic collaboration with a $1.5 billion-plus agreement to scale its unified enterprise AI data stack
ClickHouse announced an expanded five-year strategic collaboration agreement with AWS, committing over $1.5 billion to scale its unified enterprise AI data stack on AWS. The agreement includes go-to-market funding from AWS of up to four times the level under the December 2024 agreement, supporting customer migrations and proof-of-concept programs. ClickHouse will deepen integrations with Amazon Bedrock, Amazon Bedrock AgentCore, and Amazon Quick, enabling AI agents built on AWS to query live ClickHouse data through the Model Context Protocol (MCP). The company will focus engineering on agentic workloads, including agent observability with Langfuse, transactional state and memory via ClickHouse Managed Postgres, and AI-assisted security operations. ClickHouse Cloud, which launched on AWS in 2022 and now serves over 5,000 customers, will continue to run on AWS Graviton by default and expand to additional AWS regions.
November 2026 newsletter
ClickHouse announced its largest platform expansion since ClickHouse Cloud, with Managed Postgres reaching general availability on AWS, ClickHouse Observability and the Langfuse AI Gateway entering public beta, and ClickHouse Security launching in private preview. The 26.10 release introduces function composition, arbitrary JOIN conditions, SQLite file import and export, and an experimental columns cache. GroeneAI, an autonomous contributor built on the Nerve runtime, has merged over 3,100 pull requests by investigating failures and writing fixes. Loom, an open-source memory and code-search system, helps coding agents share findings across sessions and improved answer quality in benchmarks. The billion-document JSON benchmark shows ClickHouse leading with a 661-millisecond cold aggregation versus over 32 minutes for MongoDB.
What's new in clickhousectl v0.6.0
clickhousectl v0.6.0 introduces project scoping like Git, using .clickhouse/ as the root; commands resolve from any subdirectory and server configs can be checked into the repo. Cloud connections gain browser-based OAuth for the interactive client and dotenv file writing that keeps the one-time password out of terminal output. The CLI adds offline search for commands and flags, tab completions for bash, zsh, and fish that run on each press, and a feedback command to report missing capabilities. Verified installs check downloads against release checksums, and ClickHouse Managed Postgres is now GA with Postgres 19, AWS PrivateLink endpoints, standby counts, and deletion protection. Breaking changes include refreshed OAuth logins, removed repair-query-key, and new project scope behavior; the upgrade notes cover all adjustments.
ClickHouse and Power BI, columnar end to end: the Arrow Flight connector is in public preview
ClickHouse announced the public preview of its Arrow Flight connector for Power BI, enabling columnar end-to-end data transfer without format conversion. The existing ODBC connector must convert columnar data to rows for transport, requiring an on-premises gateway between services and adding significant overhead. Arrow Flight SQL stacks Apache Arrow’s columnar memory layout, Arrow Flight’s gRPC-based protocol, and SQL metadata to keep data native throughout without translation. In benchmarks with 10 million rows and 20 columns of mixed data types, the new connector in the Power BI service completed refresh in a median 278 seconds versus 390 seconds with ODBC through a gateway VM, while ClickHouse CPU usage dropped from 32.4 seconds to 5.2 seconds. The connector is in public preview, works best in Import mode, requires no gateway or driver installation, supports query folding and native SQL queries, and is open source with documentation and feedback channels available.
pg_clickhouse 0.11.1: Now with pgvector, UPDATE, DELETE pushdown
pg_clickhouse 0.11.1 adds pgvector type mapping, requiring explicit CREATE FOREIGN TABLE to map ClickHouse Array(Float32) columns to PostgreSQL vector type, and pushes down pgvector operators including L2Distance, L1Distance, cosineDistance, and dotProduct to ClickHouse functions. The foreign data wrapper detects ClickHouse vector_similarity indexes such as HNSW and reports their usage in EXPLAIN output. UPDATE, DELETE, and TRUNCATE statements now push down to ClickHouse MergeTree tables, with UPDATE requiring enable_block_number_column and enable_block_offset_column settings. Linear regression aggregates push down on ClickHouse 26.9+, and NULL-returning aggregates use OrNull variants to return NULL instead of defaults. Additional changes include JSONB subscript pushdown, TimeZone synchronization, and unconstrained NUMERIC mapping to Decimal(76,38) with trailing zero trimming.
Detect, act, keep the evidence: node reliability across three clouds
ClickHouse Cloud runs on thousands of Kubernetes nodes across AWS, GCP, and Azure where node failures like broken disks or stuck kernel tasks are daily events that often go undetected because Kubernetes still reports the node as Ready. The team built a Compute Layer Reliability system with three components: Node Problem Detector for detection using kernel logs, Node Problem Mitigator for controlled removal via taint and drain, and Node Debug Collector for forensics even when the node is unreachable. They chose to own detection and reaction across all three clouds rather than rely on provider-specific auto-repair mechanisms that were inconsistent or insufficient. The system has improved visibility and automated remediation of unhealthy nodes each month. However, it introduces complexity that is managed with safety gates like kill switches, dry-run mode, and rate limits.
The day the sky emptied: rendering the FAA outage with ClickHouse FORMAT PNG
On November 13, 2026, an FAA outage grounded air traffic across the United States. The post visualizes the entire day over the lower 48 states using ADS-B data from adsb.exposed, which stores 380 billion position reports in a ClickHouse table sorted by a Z-order curve. The animation is rendered entirely by ClickHouse’s built-in FORMAT PNG output format, with no external plotting library or image-processing script. A SQL query aggregates positions by pixel and 5-minute frame, then returns rows that become the map, title, clock, timeline, and aircraft streaks colored by altitude and speed. The resulting animated PNG is 150 MB, reduced to 25 MB with a 256-color palette, and is also available as a GIF and MP4.
Why Front migrated from Elasticsearch to ClickHouse for “pixel-perfect” analytics at scale
Front migrated from Elasticsearch to ClickHouse Cloud to power customer-facing analytics across tens of millions of messages per day for over 9,000 B2B companies. With Elasticsearch, adding a single new metric took a senior engineer several weeks due to the complexity of Painless scripting. In ClickHouse, a junior engineer implemented the first metric in three days using a single framework that defines each metric once and automatically generates all visualizations. For one enterprise customer, a 30-second query that returned 11 days of data in Elasticsearch now returns 1.5 months of data in ClickHouse with half the machines. The team used ClickHouse’s VersionedCollapsingMergeTree engine to maintain pixel-perfect accuracy with mutable data such as deleted messages or merged threads.
Bring your Claude Platform organization to ClickHouse Cloud with linked billing
ClickHouse Cloud launched linked billing, letting customers connect their Claude Platform organization without sharing an API key. An admin approves the link, and Claude API usage from ClickHouse Agents and AI Functions is billed directly to the Claude organization on existing terms. Requests go to Anthropic directly and run in ClickHouse’s organization on Claude Platform, but Claude organization settings like zero data retention and IP allowlists do not carry over. Admins can review the link or unlink at any time under Linked platforms in the Claude Console or from Organization settings in ClickHouse Cloud. The feature requires Admin role in ClickHouse Cloud and Owner, Admin, or Billing role in the Claude organization, and is enabled by asking the ClickHouse account team.
ClickHouse forecasting and anomaly detection with time series foundation models
ClickHouse stores time-series data such as logs, infrastructure metrics, and sales, but training a separate classical model like ARIMA for every series becomes difficult as the number of series grows. Time-series foundation models (TSFMs) promise zero-shot forecasts from a new series’ history without per-series training, and the post connects TimesFM 3.0 to ClickHouse through executable user-defined functions (UDFs) that send numerical arrays to a model service over HTTP. SQL handles aggregation, time bucketing, and filtering to construct each series before passing it to the UDF, and forecasts return arrays of named tuples with median, q10, and q90 bounds. Anomaly detection scores observations against the model’s expected value, and the same SQL-to-model approach could connect ClickHouse to tabular foundation models for predictions on structured rows. The demo uses the M5 retail sales dataset to forecast daily demand and identify unusual historical observations.
Trunk cuts observability costs by up to 95% and reclaims 20 engineering hours a week with ClickHouse Observability
Trunk, a CI acceleration platform, replaced Datadog with ClickHouse Observability and migrated its analytics from self-managed TimescaleDB to ClickHouse Cloud. The observability switch cut costs by 15-20x while ingesting 100% of traffic instead of 15%, keeping about 375,000 log lines and 2.2 million traces per minute. The analytics migration reduced flaky test detection from up to an hour to five minutes or less and enabled new features like real-time CI usage views. Trunk now processes nearly 2 billion test results a day, with customer workloads 10-15x larger than on Postgres. AI-assisted triage using ClickStack’s MCP and agents gives back roughly 20 engineering hours a week.
More load is faster: Tuning Postgres read replicas
A ClickHouse Managed Postgres user reported unexpectedly high read replica delay, prompting an investigation into Postgres replication lag tuning. The author found that with default settings, replica lag follows a U-shaped curve: low and high throughput cause large spikes, while moderate load yields only a few seconds of delay. Tuning archive_timeout to 5s and wal_retrieve_retry_interval to 500ms provides a safe starting point for reducing lag. More aggressive tuning, such as forcing WAL switches with pg_switch_wal() or using a WAL-G daemon client, can further reduce lag but introduces tradeoffs like increased network costs and CPU overhead. Streaming replication still achieves lower lag than archive-based replication, but the author notes that a few seconds of lag is sufficient for most use cases.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.