ClickHouse

active

by ClickHouse, Inc. · since 2016 · also known as ClickHouse Cloud

Open-source columnar OLAP database known for very fast aggregations over billions of rows.

columnar / olaprelationaldocumentvectortime-seriesdatabase engineopen source (permissive)mature

Overview

ClickHouse is a column-oriented SQL database built for real-time analytics: MergeTree tables sort and compress data on disk, and a vectorized engine scans billions of rows per second per server. It shines on append-heavy event, log, observability and product-analytics data, with materialized views, TTLs, skip indexes, a native JSON type and vector and text indexes. It can run as a single binary, a sharded self-managed cluster or ClickHouse Cloud with storage on S3. Updates, deletes and complex multi-way joins have improved a lot but remain weaker than in a classic warehouse.

Strengths & trade-offs

Strengths

  • +Scans and aggregates billions of rows per second per node
  • +Excellent compression (often 10x+) with per-column codecs
  • +Incremental materialized views and TTLs make rollups and retention cheap
  • +Ingests millions of rows per second, including directly from Kafka
  • +Runs anywhere: single binary, self-managed cluster or ClickHouse Cloud
  • +Huge function library and integrations with S3, Iceberg, Delta and Postgres

Trade-offs

  • −Updates and deletes are heavier than in row stores (lightweight deletes help)
  • −Large multi-way joins need care with join algorithms and memory
  • −Self-managed clusters (sharding, Keeper, replication) take real ops skill
  • −No full multi-statement ACID transactions

Great for

  • +Product and web analytics
  • +Log and observability backends
  • +Real-time dashboards over event streams
  • +Time-series and IoT metrics at scale
  • +Ad-tech and clickstream analysis
  • +LLM observability and tracing

Think twice for

  • −OLTP with frequent row updates
  • −Key-value point lookups at high QPS
  • −Workloads needing strict multi-row transactions

Capabilities

Native or official first-party support · 15 of 25 tracked

✓Joins
✓Secondary indexes
✓Full-text search
✓Vector search
✓Geospatial
✓JSON
✓Materialized views
✓TTL / expiry
✓Columnar storage
✓Durable persistence
✓Compression
✓Encryption at rest
✓Role-based access
✓Online schema changes
✓Streaming ingest
–Transactions
–Change data capture
–Triggers
–Stored procedures
–Pub/Sub
–In-memory
–Time travel
–Branching
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Massive · Multi-PB
Horizontal scaling
Native
Multi-region
Read replicas
Transactions
Limited ACID
Consistency
Eventual
Schema
Strict
Architecture
Distributed, Shared storage, Single node, Client server
Query languages
SQL (ClickHouse dialect), PRQL, KQL (experimental)

Sharded and replicated clusters with ClickHouse Keeper; Cloud separates compute from S3 storage. Multi-PB deployments are documented.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

available on · AWS · Google Cloud · Azure · Alibaba Cloud · Tencent Cloud · Aiven

Ecosystem

compatible withMySQL, PostgreSQL
apis & protocolsNative TCP protocol, HTTP interface, MySQL wire protocol, PostgreSQL wire protocol, gRPC, Arrow Flight
client languagesPython, Go, Java, JavaScript, Rust, C++, C#
used byCloudflare, Uber, eBay, GitLab, Sentry

Alternatives to ClickHouse

Compare all→
Apache DruidColumnar / OLAP35.0

Real-time analytics database for sub-second slice-and-dice over streaming event data.

clickhouse vs apache-druid →
Apache PinotColumnar / OLAP29.9

Real-time OLAP store from LinkedIn for user-facing analytics at very high query rates.

clickhouse vs apache-pinot →
StarRocksColumnar / OLAP15.6

MPP OLAP database with a fast vectorized engine, real-time upserts and native lakehouse queries.

clickhouse vs starrocks →
Apache DorisColumnar / OLAP15.9

Real-time MPP analytical database with MySQL compatibility, search indexes and lakehouse access.

clickhouse vs apache-doris →
DuckDBColumnar / OLAP63.7

In-process columnar SQL database: the SQLite of analytics, running inside your app or notebook.

clickhouse vs duckdb →
SnowflakeColumnar / OLAP74.4

Fully managed cloud data warehouse with separate storage and compute, now spanning AI and apps.

clickhouse vs snowflake →

ClickHouse FAQ

What is ClickHouse?

ClickHouse is a columnar / OLAP database by ClickHouse, Inc., first released in 2016. ClickHouse is a column-oriented SQL database built for real-time analytics: MergeTree tables sort and compress data on disk, and a vectorized engine scans billions of rows per second per server. It shines on append-heavy event, log, observability and product-analytics data, with materialized views, TTLs, skip indexes, a native JSON type and vector and text indexes. It can run as a single binary, a sharded self-managed cluster or ClickHouse Cloud with storage on S3. Updates, deletes and complex multi-way joins have improved a lot but remain weaker than in a classic warehouse.

Is ClickHouse open source?

Yes. ClickHouse is open source. License: Apache License 2.0.

Does ClickHouse support ACID transactions?

Partly. ClickHouse offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual consistency.

Does ClickHouse scale horizontally?

ClickHouse scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB). It supports cross-region read replicas.

How can I run ClickHouse?

You can self-host it, use the vendor's managed cloud and run it serverless. Managed offerings include ClickHouse Cloud, Aiven for ClickHouse and Tinybird. It is available on AWS, Google Cloud, Azure, Alibaba Cloud and Tencent Cloud.

What is ClickHouse best for?

ClickHouse is a strong fit for product and web analytics; log and observability backends; and real-time dashboards over event streams. Think twice for OLTP with frequent row updates.

What are the best alternatives to ClickHouse?

Common alternatives to ClickHouse include Apache Druid, Apache Pinot, StarRocks, Apache Doris and DuckDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is ClickHouse?

ClickHouse ranks #10 of 844 databases on the WhichDB Score (69.8/100), and #2 among columnar / OLAP databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.