ClickHouse vs DuckDB

Two analytics (OLAP) options for database. When each fits, what it costs, who moves from one to the other, and what makers who chose it say.

Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

Which fits you

Choose ClickHouse if
  • Fast aggregate queries over billions of rows of events, logs or metrics, self-hosted or on ClickHouse Cloud.

Use it whenDashboards or usage analytics are getting slow on your main Postgres.

Trade-offBuilt for bulk inserts and scans, not frequent row updates or transactions; runs next to your main database, not instead of it.

Choose DuckDB if
  • Analytical SQL inside your app or script over local or S3-hosted CSV and Parquet files, with no server to run.

Use it whenOne process does the analysis — a report job, a data notebook, analytics in the browser via WebAssembly.

Trade-offAn embedded library, so it doesn't serve many concurrent writers like a database server does.

At a glance

ClickHouseDuckDB
Used by40 makers' products · 58 open-source projects14 makers' products · 44 open-source projects
Downloads3.1M/wk+41% vs npm1.2M/wk4.8× vs npm
PricingFree to self-host (Apache 2.0); ClickHouse Cloud is usage-based with compute and storage billed separately, starting with a 30-day trial and $300 in credits. · paid from $53/mo (Basic)Free and open source (MIT).
Free tierYesYes
Open sourceYes · self-hostableYes
Incidents, 90 daysfrom its status page17 (2 major)no public status feed

What makers say

Makers on using it for database, from Product Hunt and Starter Story interviews, each linked to the source. Products with a page of their own and fuller notes first.

On ClickHouse
We built on ClickHouse to process large volumes of AI bot and server-log data in real time. Agent analytics requires speed and scale - and ClickHouse delivers both.
Siteline, the makerSep 2026 ↗
ClickHouse backs Basedash Warehouse, every team's centralized warehouse in Basedash. It's incredibly fast for complex queries and scales to any size we need.
Basedash, the makerSep 2026 ↗
Spans are append-only and every screen in the product is an aggregate over millions of them, which is a columnar problem, so that's where they live.
Prefactor, the makerSep 2026 ↗
16 more on the ClickHouse page →
On DuckDB
Our built-in SQL cells are powered by duckdb, which makes it possible to execute blazingly fast queries against Python dataframes as well as external databases like SQLite and Postgres.
marimo, the makerSep 2026 ↗
We use DuckDB WebAssembly as the core of Universal SQL and it has made it possible to deliver incredibly fast, interactive apps. The DuckDB team and community are phenomenal.
Evidence, the makerSep 2026 ↗
DuckDB powers our analytics engine for SQLite, CSV, Excel files and more. We couldn't have built CamelAI without DuckDB. It's enabled us to execute SQL queries that used to take minutes in seconds.
CamelAI, the makerSep 2026 ↗
10 more on the DuckDB page →

Loved and watch-outs

Themes that recur in makers' words and Hacker News comments, each linked to what it summarises.

ClickHouseOn Product Hunt: 5.0★, 28 reviews · mentioned most: fast performance, real-time analytics
DuckDBOn Product Hunt: 5.0★, 16 reviews · mentioned most: fast performance, in-process SQL engine, WebAssembly support

Who uses each

What makers pair each with

With DuckDB
Frontend Framework
LLM API
Hosting
SupabaseBackend platformPostgres plus auth, storage and realtime in one project.
ConvexBackend platformRealtime, collaborative apps written entirely in TypeScript.
FirebaseBackend platformMobile apps that need offline sync and client-side SDKs.
NeonManaged databaseServerless Postgres that scales to zero, with a branch per preview deploy.
PlanetScaleManaged databaseApps that expect heavy scale and want zero-downtime schema changes.
TursoManaged databaseSQLite at the edge, or one database per customer.
MongoDBManaged databaseDocument-shaped data and teams already fluent in Mongo.
PostgreSQLRun it yourselfThe engine behind most of the hosted options above, run on your own server or container for full control and a flat cost.