Skip to content

What is DuckDB?

DuckDB is an open source analytical database embedded in applications: it queries data with SQL, including directly from files, without a separate server.

DuckDB is an open source analytical database that can be embedded in an application: it runs queries in SQL, a language for requesting data, inside the application's process instead of requiring a separate server. It is designed to analyze datasets, for example to calculate totals or compare sales by region, rather than to handle many small independent operations. It can read CSV and Parquet files directly, without first importing them into a separate database; Parquet is a format that organizes data by column. The research paper by its authors places it alongside SQLite among embedded databases, with a different purpose: SQLite emphasizes transactional operations, while DuckDB emphasizes analysis. Having no separate server simplifies setup but leaves the application responsible for managing resources and access. Whether DuckDB fits therefore also depends on who needs to write the data and where queries will run.

See also: Polars vs Pandas vs SparkThree Python libraries for tabular data: the right pick depends on data volume and where it runs, not on one engine being universally better.

Where it fits

Direct reads are useful when a team receives files to explore or check before loading them into a shared platform. According to the DuckDB Parquet documentation, DuckDB reads only the columns a query needs and, when the query filters data and the file's metadata permits, can skip whole parts of the file. None of this guarantees speed: file layout, the network and the query all affect performance. Choosing among Parquet, Avro and ORC is about the data format, not the engine's role.

The database file and any files DuckDB reads remain subject to the permissions of the environment running the application. Embedding the engine does not itself provide a shared service with centralized access controls and operating procedures: those must be designed separately.

An enterprise example

A company receives periodic Parquet order extracts from its suppliers. An internal process uses DuckDB to check totals and flag missing codes and duplicates before loading the data into the business system. The team checks the results against the target engine on representative cases: SQL dialects and data handling can differ, so passing a local check alone does not prove that the final transformation is correct. Temporary files and working copies need the same access and retention review as the original data.

Why it matters for decision makers

For the native database file, the concurrency documentation distinguishes multiple writers within one process from multiple processes that only read. If multiple processes must write concurrently, a different architecture is needed: the Quack protocol adds a server, while replacing the native file with the DuckLake format lets multiple instances write and coordinate through a PostgreSQL catalog. The MIT license on the code permits use and modification under its stated conditions, but support and operational responsibilities still need to be assessed.

The resource guide explains that DuckDB can process data larger than memory by using temporary disk space, but some queries, for example those combining several grouping, sorting or join operations, can still run out of memory. Before choosing, measure time, memory and disk use on actual data. If several teams must share the data, DuckDB can query the tables of a shared data lakehouse instead of keeping them in its own file.

Frequently asked questions

Yes. DuckDB can query Parquet files directly; it can also import them into its own tables when needed.

Yes, if the writes go through a single process, for example a service receiving user requests: concurrent writes succeed, but two simultaneous updates to the same row cause a conflict. If multiple processes need to write to the same native file, a different setup is needed, such as a Quack server.
  • Polars vs Pandas vs SparkThree Python libraries for tabular data: the right pick depends on data volume and where it runs, not on one engine being universally better.
  • Open table formats (Iceberg, Delta, Hudi)Open table formats organize files and metadata into tables with versions and transactions, so that multiple compatible processing engines can access them.
  • Data lakehouseA data architecture combining the flexibility of a data lake with the reliability of a data warehouse in one platform.
  • OLAP vs OLTPOLAP covers analysis across many records and OLTP covers day-to-day transaction processing; the two differ in read, write, and response-time requirements.
  • Parquet, Avro and ORCParquet, Avro and ORC are structured data formats: Parquet and ORC organize values by column, while Avro encodes the fields of each record in sequence.

See it in the universe

If it touches your company's data, getting that data in order is the first thing I do.

See Data Foundations

Or write to me.