Database & Storage · DuckDB Foundation

DuckDB

The SQLite of analytics — in-process OLAP that chews through Parquet and CSV with zero infrastructure.

Visit duckdb.org
CategoryPricingCompanyOfficial siteBest for
Database & StorageFreeDuckDB Foundationduckdb.orgLocal analytics, Parquet wrangling and embedded OLAP without a warehouse

What it is

DuckDB is an embedded analytical database — think SQLite, but built for OLAP instead of OLTP. It runs in-process (no server, no daemon), stores nothing you don’t explicitly persist, and is engineered to scan columnar data fast with vectorized execution and a lean query optimizer. The DuckDB Foundation backs the project; the code is open source under the MIT-style license. It’s the tool you reach for when someone hands you a 40GB Parquet dump and asks a question at 4pm.

The research lineage matters here: DuckDB comes out of the same academic world as columnar query engines, and it shows in details like automatic parallelism, zone maps on Parquet row groups and predicate pushdown without you writing hints. It’s also one of the few databases that reads files as a first-class table source — CSV, JSON, Parquet, Arrow — so “import” usually means “point at the file and query.” That single design decision eliminates half the ETL you used to do just to ask questions.

What it actually does

Install the CLI and point it at files — it queries them directly, no import step:

# Install (macOS)
brew install duckdb
# Or: pip install duckdb / or just download the binary

duckdb
D SELECT * FROM duckdb_tables();                    -- inspect your catalog
D SELECT country, count(*) FROM ’events.parquet’
     GROUP BY country ORDER BY 2 DESC;             -- no COPY, no schema
D SELECT * FROM read_csv_auto(’s3://bucket/log.csv’) LIMIT 5;
D CREATE TABLE t AS SELECT * FROM ’dump.json’;   -- materialize
D SUMMARIZE ’sales.parquet’;                        -- stats in one line

Also: full SQL (window functions, CTEs, joins everywhere), Parquet/CSV/JSON/Arrow/Iceberg readers, httpfs for direct S3 reads, MotherDuck as the optional cloud-hosted sibling, and first-class bindings for Python, R, Node and Rust. It parallelizes across cores without you asking.

How the daily workflow looks

An analyst drops three Parquet files in Slack. You run duckdb, query them in place, get an answer in seconds, and paste it back. A data engineer prototypes a transformation in DuckDB, then ports it to the warehouse when it’s proven — or keeps it embedded in the app, because DuckDB deploys as a library dependency. Local notebooks use it as the query engine under pandas via duckdb.sql(). The workflow is: no cluster, no permissions ticket, no YAML — just SQL against files.

How it compares to alternatives

vs SQLite. SQLite is row-oriented and transactional — perfect for app state, painful for scans over millions of rows. DuckDB is columnar and analytical — perfect for aggregations, useless as your web app’s primary database (it supports transactions, but concurrency is intentionally limited). Use both; they coexist happily.

vs BigQuery / Snowflake. True warehouses bring concurrency, governance, history and scale — and a bill, a login and a permissions model. DuckDB brings sub-second answers on a laptop with zero ops. For gigabyte-scale exploration and embedded analytics, DuckDB wins outright; for terabyte-scale multi-team workloads with SLAs, you still need the warehouse.

Pricing and free tier

DuckDB itself is 100% free and open source — no license, no seats, no usage meter. Costs appear only if you opt into MotherDuck (the commercial cloud twin) for hosted, shared DuckDB, or if you rent bigger machines. For local and embedded use, it costs exactly nothing. Check duckdb.org and motherduck.com for current hosted options.

Where it shines / where it doesn’t

Shines: ad-hoc analytics on Parquet/CSV, ETL prototyping, embedded analytics in apps and notebooks, local-first data work, teaching SQL, cost-free warehousing for small teams, and querying data where it already lives (S3, disk, HTTP).

Doesn’t: high-concurrency multi-user serving (it’s single-writer), OLTP backends for apps, row-by-row transactional updates at volume, and governance-heavy environments needing RBAC and audit logs out of the box. Also, memory-bound giant joins will remind you your laptop is not a cluster.

Getting started in 3 minutes

# 1. brew install duckdb (or pip install duckdb)
# 2. duckdb
# 3. D SELECT 42 AS answer;
# 4. D SELECT count(*) FROM ’~/Downloads/data.parquet’;
# 5. In Python: import duckdb; duckdb.sql("SELECT ...").df()

No server, no config file, no dashboard login. The shortest path from file to answer in databases.

PeaBox fit

DuckDB is the unofficial analytics engine of the PeaBox toolkit: export app tables as Parquet, run real SQL locally, feed insights into dashboards without paying a warehouse for the privilege. It pairs naturally with Neon or Supabase (pg2parquet snapshots in, answers out) and with HTTPie for pulling API payloads into files worth querying. If your data fits on your disk, DuckDB is the whole warehouse you need.

The honest practitioner take

DuckDB quietly ruins the “we need a warehouse” meeting for teams with sub-100GB datasets — install it once and you’re suddenly doing in seconds what used to require a trial account and a Solutions Engineer. It’s not a Snowflake replacement and never will be; it’s the thing that makes 80% of analytical questions trivial before those meetings happen. Learn read_parquet(), SUMMARIZE and the httpfs extension, and you’ll reach for it weekly. Free, fast, local — that’s the entire business model, and it works.

Features and versions approximate as of Nov 2026; check duckdb.org for release notes and limits.