ClickHouse vs DuckDB

ClickHouse: Event, log and metrics analytics at scale.; DuckDB: Local analytics, data exploration and lightweight data pipelines.

FieldClickHouseDuckDB
PricingOpen sourceOpen source
Open sourceYesYes
Self-hostableYesYes
EcosystemLanguage-agnosticPython, JavaScript / TypeScript, Language-agnostic
LicenseApache-2.0MIT
CategoryDatabases & ORMsDatabases & ORMs

Choose DuckDB over ClickHouse when

Choose it for a library inside your process with no server to install, ACID transactions through MVCC and an MIT licence. ClickHouse adds sharding and replication across servers.

DuckDB: a library inside your process with no server to install, ACID transactions through MVCC, MIT licensed, 2.0.1 released 2026-11-20 (Why DuckDB, releases, LICENSE). ClickHouse adds sharding and replication across servers (distinctive features).

SourceChecked 25 November 2026

Choose ClickHouse over DuckDB when

Choose it when several applications or dashboards need a shared analytical database server and you want column-oriented storage.

ClickHouse stores data by column and is designed to run analytical SQL over that data (ClickHouse introduction). The project provides a server for shared datasets and a command-line client. The same project offers clickhouse-local for running queries against files on a workstation (ClickHouse local documentation).

SourceChecked 29 November 2026

ClickHouse

A column-oriented database for real-time analytics on large volumes of events, logs and metrics.

Choose ClickHouse if

Event, log and metrics analytics at scale.

Why it’s here

ClickHouse is a column-oriented SQL database for analytics. A query reads only the columns it names, and the docs show one query scanning 100 million rows in 92 milliseconds (introduction). It is built for aggregations over billions of event, log or metric rows that must return in under a second, and not for transactional application data.

Pick it when

  • Dashboards or customer-facing APIs run aggregations over billions of rows and need answers in under a second (introduction).
  • Data arrives as an append-only stream. Rows are kept sorted by primary key as they merge, and ingestion takes no locks (distinctive features).
  • You want to try it on files first. curl https://clickhouse.com/ | sh downloads one binary that runs as clickhouse-local over Parquet or CSV files and also as the server (clickhouse-local).

Skip it when

  • You need multi-statement transactions, high-rate single-row updates or point lookups by key. The docs list as disadvantages: no full-fledged transactions, no high-rate low-latency modification of inserted data, and inefficient point queries because of the sparse index (distinctive features). ClickHouse Inc. points transactional workloads to a separate product, ClickHouse Managed Postgres (transactions page).
  • The data fits one machine and one process. DuckDB is the smaller tool for that.

Current state

ClickHouse ships a release every month (README). The latest stable build is v26.10.5.57, published 2026-11-17; v26.8 and v26.3 are the LTS lines (releases). Only 26.10, 26.9, 26.8 and 26.3 receive security fixes, so a pin to 26.4 through 26.7 is unsupported (security policy). The licence is Apache-2.0 with copyright held by ClickHouse, Inc., which also sells ClickHouse Cloud.

Pricing

ClickHouse Cloud, from the official pricing page read 2026-11-17, N. Virginia (us-east-1), US dollars:

  • Storage: $25.30 per TB per month on every plan, measured on compressed data.
  • Compute: per unit-hour, Basic $0.2181, Scale $0.2985, Enterprise $0.3903. A unit is 8 GiB of RAM and 2 vCPUs, metered per minute, and compute scales to zero when idle. One always-on Basic unit is about $159 a month (730 hours at $0.2181).
  • Basic is capped at 1 TB of storage and 8-12 GiB of total memory; Scale lifts the storage cap. Public internet egress starts at $0.1152 per GB; ingress is free.
  • New organisations get $300 in credits for 30 days.

Self-hosting the open-source server costs nothing in licence fees.

Watch out for

Row updates work, with limits. UPDATE applies patch parts that queries see immediately, but it is meant for small updates, up to about 10% of a table, and frequent small updates can trigger a "too many parts" error. Data-skipping indexes and projections are not used on parts that have patches, and the table needs enable_block_number_column and enable_block_offset_column set (UPDATE). The older ALTER TABLE ... UPDATE mutation is a "heavyweight process that rewrites entire columns in data parts" (UPDATE), and neither form can change primary-key columns (mutations). An insert into a Distributed table is not transactional as a whole, and transactions across statements are experimental (transactions page).

ClickHouse on GitHub

DuckDB

An in-process analytical SQL database that queries Parquet, CSV and JSON files directly and fast.

Choose DuckDB if

Local analytics, data exploration and lightweight data pipelines.

Why it’s here

DuckDB is an analytical SQL database that can run inside the application process. In Python it can query Pandas and Polars DataFrames and Arrow tables, so a script can join or aggregate data it has already loaded (Python documentation). You can use an in-memory connection for an exploratory session or open a database file to preserve tables between runs (Python connection options).

Pick it when

  • Your inputs are Parquet files and you want to query them in place. DuckDB can scan a file, a list of files or a glob. Its Parquet reader can limit the scan to the columns the query needs and use filters and file statistics to skip parts of the input (Parquet documentation).
  • You need to join or aggregate data that exceeds available RAM. DuckDB can spill intermediate data to a temporary directory, and the temp_directory setting lets you choose the disk that holds those files (workload tuning guide).
  • You want a Python notebook to query an existing DataFrame without loading its rows into a separate database. The Python interface exposes those objects to SQL, and it can return results as DataFrames or Arrow objects (Python documentation).

Skip it when

  • Several processes must directly write to the same native database file. Embedded read-write mode assigns that job to one process, which can run multiple writer threads. DuckDB documents its Quack remote protocol for a client-server deployment with writers in multiple processes (concurrency documentation).

Current state

DuckDB 2.0.1 was released on 2026-11-20 and fixes issues found after 2.0.0 (release notes, release announcement). The source is distributed under the MIT licence (licence).

Setup

Install the Python package with pip install duckdb, then try duckdb.sql("SELECT 42").show() after importing it. To persist tables, use duckdb.connect("analysis.duckdb") and query through that connection (Python documentation).

Watch out for

Concurrent transactions that edit the same rows can hit an optimistic concurrency conflict, so a writer may need to retry (concurrency documentation). Spilling supports larger-than-memory workloads, but a query with several blocking operators, such as an aggregate combined with a sort, can still exhaust memory (workload tuning guide).

DuckDB on GitHub