ClickHouse logo

How ClickHouse Uses SQL

237 engineering articles about SQL from ClickHouse's engineering team

Articles

Filter:
ClickHouse logo
ClickHouse
Advanced
LinkedIn expanded its ClickHouse observability stack from distributed tracing to metric discovery and analytics, consolidating 13B+ metrics into one index serving 150k+ queries per minute.
ClickHouse logo
ClickHouse
Intermediate
ClickHouse Workload for Microsoft Fabric brings sub-second analytics to OneLake data through a native Fabric workload, with dedicated ClickHouse Cloud compute for agents, dashboards, and applications.
ClickHouse logo
ClickHouse
Advanced
The chDB Durable Layer keeps agent memory fast to query locally while making its analytical state recoverable across laptops, CI jobs, and short-lived sandboxes.
16 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
How do Postgres providers handle a query that exhausts memory? A recursive query benchmark compares query failures and cluster survival across ClickHouse Managed Postgres, Cloud SQL, PlanetScale, and Amazon RDS.
ClickHouse logo
ClickHouse
Intermediate
ClickHouse 26.9 introduces conditional LIMIT boundaries, incremental refreshes for append-only materialized views, disk spilling for DISTINCT, time-limited tokens, and faster min/max/count queries.
21 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
See how local NVMe transforms Postgres transaction performance—and why ClickHouse remains essential for fast analytics as workloads scale.
9 min read
Includes Code
--
ClickHouse logo
ClickHouse
Beginner
Notes from three days in the Netherlands, featuring a lightning talk on pg_clickhouse and pg_stat_ch at PGDay Lowlands and a session on PostgreSQL 19 monitoring at Percona Live Amsterdam.
8 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
The official ClickHouse provider for Apache Airflow simplifies data workflows with standard SQL operators, bulk inserts, and shared setup across self-managed Airflow and Astronomer.
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
ClickHouse PromQL support lets you store Prometheus metrics in ClickHouse Cloud, query them using familiar PromQL, and bring metrics together with your logs and traces without rewriting queries in SQL.
13 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
ClickHouse 26.8 LTS introduces background queries, pipelined SQL, new text tokenizers, expanded data lake integrations, and faster Parquet, aggregation, and join queries.
ClickHouse logo
ClickHouse
Intermediate
Use ClickHouse to load Parquet files into MySQL, explore remote data, and run MySQL queries with table functions and named collections.
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
Explore ClickHouse AI Functions for classification, generation, translation, embeddings, semantic search, and cost controls—all directly from SQL.
14 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
CostBench puts cloud data warehouses under continuous load. Across the complete path from fresh data to fast answers, ClickHouse Cloud delivers 412–1,996× better performance per dollar.
20 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Google's MCP Toolbox for Databases embeds agent text into vectors on insert and search, then lets ClickHouse rank the results - no embedding service to build or maintain. Here's how to set it up, and what it looks like end to end.
ClickHouse logo
ClickHouse
Intermediate
Learn how to build a streaming HTTP API directly in ClickHouse 26.8 with named handlers, typed parameters, pagination, framing formats, and access control.
19 min read
Includes Code
--
ClickHouse logo
ClickHouse
Beginner
PostgreSQL 19 adds four system views that make lock contention, recovery state, autovacuum priorities, and dynamic shared memory allocations easier to inspect.
14 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
We took 201 real analytics questions from our production data warehouse, benchmarked 28 models on correctness, cost, and speed, and released an open harness so you can run the same test on your own.
ClickHouse logo
ClickHouse
Beginner
See how a four-step onboarding flow helps users move from provisioning ClickHouse Managed Postgres to querying operational data and running real-time analytics with ClickHouse.
7 min read
--
ClickHouse logo
ClickHouse
Advanced
After claims that ClickHouse is “winning the observability wars” sparked debate, we reflect on why it has become a leading storage and query engine, where it still falls short, and why winning the database layer isn’t the same as winning observability.
ClickHouse logo
ClickHouse
Advanced
Discover how ClickHouse .NET Driver 1.1–1.3 adds type-safe POCO workflows, extensible serialization, broader type support, performance improvements, and official ecosystem integrations.
16 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
ClickGap reviews merged ClickHouse changes, executes reproducers, rejects false positives, and attributes regressions to specific commits.
22 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
PostgreSQL 19's new `WAIT FOR` command enables read-your-writes consistency on asynchronous replicas by letting individual reads wait for a specific WAL position.
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Suprema Gaming migrated its analytics platform from Snowflake to ClickHouse Cloud to power a company-wide shift toward agentic operations.
ClickHouse logo
ClickHouse
Intermediate
ClickHouse Grafana plugin 4.20 brings compact query mode, click-to-filter log investigation, guided variable and annotation editors, and OpenTelemetry dashboards
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
iFood rebuilt its in-house security platform on ClickHouse Cloud, getting 9-16x faster queries at 40-50% of the cost and unlocking agentic threat hunts that cut a week of analyst work down to two hours.
ClickHouse logo
ClickHouse
Intermediate
Explore ClickStack’s latest upgrades, from richer trace navigation and Prometheus connectivity to smarter dashboards, quieter alerts, faster filtering and support for exponential histogram metrics.
ClickHouse logo
ClickHouse
Intermediate
This release brings speedups for GROUP BY ... ORDER BY ... LIMIT, three JOIN improvements, four vector search improvements, position-aware phrase search, EXPLAIN ANALYZE, unified URL access, and more!
34 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Physical Intelligence runs both its OLAP and OLTP workloads on ClickHouse managed Postgres and ClickHouse Cloud
18 min read
--
ClickHouse logo
ClickHouse
Advanced
How we rebuilt ClickHouse Cloud's autoscaling orchestration on Kubernetes' controller-runtime and a ClickHouse-powered signals table, adding a reactive fast path that scales services up in seconds instead of waiting for the next scheduled pass.
15 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
You can choose any of these hundred database systems and run queries. You can create tables and databases, insert data, drop tables, etc. Every database comes with a preloaded dataset of 100 million records, so you can test example queries. It has not onl
ClickHouse logo
ClickHouse
Advanced
Using ClickHouse for observability and wondering which interface best fits your workflows? We explore ClickStack, Grafana, and when it makes sense to use both.
ClickHouse logo
ClickHouse
Intermediate
Why ClickHouse Managed Postgres runs strict memory overcommit by default, and how it turns an instance-wide OOM restart into a single failed query — shown side by side on identical hardware, with no measurable throughput cost.
8 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
A behind-the-scenes look at hdx-evals, the open-source framework we built to benchmark the ClickStack MCP server against a raw SQL baseline using deterministic synthetic incidents, sandboxed Claude agents, and blind LLM grading — and why the MCP scored hi
16 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
How a coding agent used clickhousectl to stand up a distributed ClickStack across the US, Europe, and Japan, with regional ingestion and one global view.
8 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
January’s ClickStack update brings Managed ClickStack, dramatically faster text search with new indexing options, materialized view powered alerts, and a wave of usability upgrades across the stack.
16 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Using ClickHouse as a webhook endpoint with HMAC verification
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Search and uncover technology trends across 10 billion GitHub events in real time.
5 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
Februarys' ClickStack update brings major improvements to both Cloud and open source, including new query workflows, enhanced metrics exploration, performance optimizations, and expanded alerting options.
15 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
This post shows a lightweight metrics layer for ClickHouse using MooseStack, an open source developer agent harness for ClickHouse.
ClickHouse logo
ClickHouse
Advanced
ClickHouse is fast by design, but raw database speed isn't enough. This post explores how ClickStack tightly integrates with ClickHouse to generate optimized queries — from progressive time window pagination and chunked charts to automatic use of materi
25 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
Learn how to send structured .NET logs directly to ClickHouse using Serilog — with full schema control, full-text search, and SQL queries over your log data.
ClickHouse logo
ClickHouse
Advanced
High-performance full-text search, even on object storage. This deep dive from the ClickHouse engineers explains the new text index design and how it keeps queries fast at scale.
ClickHouse logo
ClickHouse
Advanced
Ten best practices for getting the most out of ClickHouse, from primary key design and data types to materialized views, ReplacingMergeTree, and join optimization — illustrated with benchmarks on a 150M row dataset.
ClickHouse logo
ClickHouse
Intermediate
ClickStack now supports Role-Based Access Control, giving teams precise control over who can access dashboards, searches, and notebooks. With flexible roles, fine-grained permissions, and seamless ClickHouse Cloud integration.
7 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
How to remain competitive in the AI era of software engineering
ClickHouse logo
ClickHouse
Advanced
Retention limits, sampling, and metric roll-ups aren't observability best practices - they're workarounds for storage systems that can't handle full-fidelity data, and they're becoming a hard blocker for AI-driven workflows.
19 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
A Solutions Architect’s experience building a retail analytics platform with AI agents, real-time dashboards, and full observability on the ClickHouse data platform
ClickHouse logo
ClickHouse
Intermediate
ClickStack’s March release introduces smarter Event Deltas, AI-powered notebooks, and full SQL chart flexibility, making investigation faster and dashboards more powerful.
14 min read
Includes Code
--
ClickHouse logo
ClickHouse
Intermediate
We see ClickHouse and Grafana as a key part of the observability experience. Here's our vision for making the plugin more powerful and easier to use.
11 min read
Includes Code
--
ClickHouse logo
ClickHouse
Advanced
ClickHouse now brings full-text search and large-scale analytics together in one engine, making it a powerful alternative to Elasticsearch for log analytics. This benchmark shows why.
24 min read
Includes Code
--