Follow us
Breaking
Software

The people shaping DuckDB as analytics teams adopt embedded OLAP

Hannes Mühleisen and Mark Raasveldt created DuckDB to solve performance bottlenecks in the client-server model. The in-process OLAP engine achieves 40% monthly growth as teams use it to run large workloads on local hardware instead of expensive cloud warehouses.

Share

The architecture of in-process OLAP

Hannes Muhleisen and Mark Raasveldt created DuckDB to address the performance bottlenecks of the client-server model. They built an in-process OLAP database using C++ that operates under an MIT license. I find the "SQLite for analytics" comparison accurate because the engine resides within the application memory address space. This architecture eliminates the need to copy and serialize large amounts of data over sockets. When Muhleisen timed data transfers, he found that MySQL took ten times longer than Netcat, while Hive and MongoDB took over an hour. DuckDB uses vectorized query processing and Morsel-Driven parallelism to maximize CPU cache efficiency and multi-core usage. The engine processes queries through stages including query planning, optimization, and physical planning. Within these stages, the system uses pipelines that can run in a streaming fashion until they hit a breaking operator. The hash join is split into two phases: building the hash table on one side and probing on the other. The build phase requires the system to see all data from the left-hand side of the join before the probe phase can begin. During the probe phase, the system uses the built hash table to find join partners from the customer table. This contrasts with the traditional Volcano-style iterator model used by PostgreSQL and MySQL, which relies on a sequence of iterators where every operator exposes an iterator. This row-at-a-time approach generates significant overhead because of the constant switching between operators and iterators. While row-based engines like PostgreSQL, MySQL, Oracle, and SQLite focus on transactional workloads, DuckDB functions as an agile, lightweight OLAP workhorse.

Feature Specification
License MIT
Language C++
Primary Use In-process OLAP
Growth 40% monthly
GitHub Stars > 10,000
v2.0 Protocol quack

Evolution of the DuckDB ecosystem

The "Cyanoptera" release, also called DuckDB v2.0, includes more than 10,000 commits. This version includes a native client/server mode using the "quack" protocol and the "CONNECT SQL" statement. By using a versioned C API with an explicit YAML-defined specification, DuckDB v2.0 provides stable Application Binary Interface guarantees that allow developers to build extensions once and run them across updates. The release includes asynchronous I/O for cloud object stores such as Amazon S3, partition-aware query planning, and optimized string compression via default DICT_FSST dictionaries. Version 2.0 also includes native BEFORE and AFTER triggers with transition tables, APPROX NEAREST similarity joins for vector workloads, and DML expressions inside Common Table Expressions. The replacement of the legacy PostgreSQL-derived parser with a custom PEG-based grammar was a difficult necessity that required ripping out 20,000 lines of Postgres yacc grammar. I note the decision for AWS to acquire DuckDB Labs, while the DuckDB Foundation and the project license stay independent. This business development occurs as MotherDuck, a Seattle-based company founded by Jordan Tigani, builds a cloud service on top of the open-source engine. MotherDuck secured 47.5 million dollars from investors including Andreessen Horowitz.

Performance shifts in the analytics market

Analytics teams adopt DuckDB to lower infrastructure costs by running larger-than-memory workloads on consumer-grade hardware. Rill, which received 12 million dollars in seed funding, uses DuckDB in its Rill Developer product to power dashboards. You should notice how developers use DuckDB-WASM with Parquet to run dashboards in browsers without backend REST layers. The project reaches 100,000 monthly unique visitors and maintains a 40% monthly growth rate, with over 400,000 PyPy downloads. While Snowflake users face costs tied to the duration of active virtual warehouses and BigQuery users pay for the volume of data scanned, DuckDB utilizes local compute. Rill founder Michael Driscoll built his team from engineers at Snap to create a faster alternative to the Looker-Snowflake stack. Stephanie Wang, a founding engineer at MotherDuck, previously worked on BigQuery developer tools. I see that the popularity of DuckDB is reflected in its 10,000 GitHub stars and the high volume of PyPy downloads. Data engineers use DuckDB as a persistent or ephemeral execution engine in environments like EC2 VMs or Lambda functions. This allows them to read data directly from S3 or other sources. While Databricks targets organizations running large-scale ETL and custom ML through Spark, DuckDB provides a lightweight alternative for batch reporting and ad-hoc SQL execution across remote Parquet files. While Snowflake provides an 8.1/10 analytics score on G2 and BigQuery provides an 8.6/10 score, DuckDB provides a specialized columnar engine that appeals to those avoiding the complexity of distributed systems. Does the transition toward embedded OLAP engines signal a decline in the necessity for massive, centralized cloud warehouses?

Share

Technewsdaily

Senior tech writer covering AI, gadgets and cybersecurity. Breaking down the news that matters, every day.