AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Buying for a business?Offer from Amazon

Get business pricing on monitors, keyboards and dev gear

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

DuckDB 2.0’s alpha adds asynchronous read-ahead for remote data, allowing S3 downloads to overlap with CPU processing. A MotherDuck report measured faster reads in several tests, while the DuckDB team claims a 40-fold improvement for graph reachability with rewritten recursive CTEs; those results are not broad independent benchmarks.

DuckDB 2.0’s alpha can read some remote datasets faster by downloading data while other threads process it, according to a MotherDuck report that tested the preview against DuckDB 1.5.5. The report measured a read of one 2.2 GB Parquet file from Amazon S3 at 7.7 seconds, compared with 18.8 seconds in 1.5.5, but those results came from one laptop and one home internet connection, not a broad independent benchmark.

The largest measured change in the report comes from asynchronous I/O. The tested Parquet file contained 228 million Stack Overflow votes split across 2,268 row groups. The query read one of its four columns and counted rows by vote type. In DuckDB 1.5.5, workers alternated between waiting for a row group to download and decoding it. In the 2.0 alpha, a separate download pool fetched row groups ahead of the workers, so CPU processing could continue while network requests were in progress.

MotherDuck reported the same query took 18.8 seconds in 1.5.5 and 7.7 seconds in the alpha. Its other S3 tests also showed shorter runtimes: 13.6 GB across 23 large Parquet files took 11.8 seconds versus 3.9 seconds; a 1.7 GB plain CSV took 116 seconds versus 55 seconds. These are the author’s measurements, not results from a controlled multi-system benchmark. The report says all tests ran on one M5 laptop over home internet, which affected both versions.

The report also describes a recursive CTE engine rewrite, a change relevant to queries that repeatedly follow relationships in a table, such as tracing employee-manager links or graph connections. It says the DuckDB team claims a 40-fold speedup for graph reachability. The supplied report excerpt begins an employee hierarchy example but does not include the full explanation, benchmark setup, or results behind that claim.

At a glance
reportWhen: DuckDB 2.0 was described as coming in f…
The developmentMotherDuck has reported early DuckDB 2.0 alpha speedups, attributing them to asynchronous I/O and a rewritten recursive CTE engine.

Remote Reads Gain From Overlap

For users querying files in Amazon S3, the reported improvement could reduce waiting without requiring changes to SQL. The performance gain is tied to how the engine schedules work: network latency no longer leaves every processing worker idle while it waits for data. That can matter for analysts and pipeline builders who query remote Parquet or CSV rather than first copying it to local storage.

The benefit is not universal. MotherDuck’s tests found little difference for 30 tiny Parquet files of about 1 MB each: 3.7 seconds in 1.5.5 and 3.3 seconds in the alpha. The report attributes this to per-file network round trips that read-ahead cannot remove. That result underlines a practical limit: file layout and workload shape affect whether the new scheduling helps, and 2.0 does not eliminate the costs of many small files.

Recursive-query improvements could matter to users working with hierarchical or graph-shaped data, but the 40-fold figure needs its benchmark details before readers can judge how widely it applies. Together, the changes point to improvements in specific bottlenecks, rather than a guarantee that every DuckDB query will run faster.

Products Worth Considering

Amazon Kindle Paperwhite Signature Edition (12th Generation, 2024), 32 GB, Metallic Raspberry

Amazon Kindle Paperwhite Signature Edition (12th Generation, 2024), 32 GB, Metallic Raspberry

As an affiliate, we earn on qualifying purchases.

Two Different Performance Changes

The report presents the S3 measurements as a comparison between DuckDB 1.5.5 and the 2.0 alpha, not a final release. In its larger Parquet test, the query reads one column from a 2.2 GB file, rather than scanning every column. This matters because the result reflects a particular combination of file structure, query, network path, and hardware.

In 1.5.5, according to the report, each of 18 workers handled both downloading and decoding row groups. In the alpha, a separate pool does the downloading, with data held in a buffer for the workers. A setting called read_ahead_depth controls how many row groups may be fetched ahead. It defaults to -1, which the report describes as automatic and based on thread count; setting it to 0 restores the older behavior.

The recursive CTE change addresses a different kind of work. Rather than reducing network waits, it concerns repeated execution used to traverse connected or parent-child records. The source material identifies the engine rewrite and the team’s graph-reachability claim, but gives too little of the example or test methodology to explain precisely which workloads benefit.

“Every number below is from one machine (an M5 laptop) and my home internet, which slows both versions about equally. Run your own before quoting them.”

— MotherDuck report author

Alpha Results Need Wider Testing

The figures come from one M5 laptop and a home internet connection, and the source does not provide repeated-run ranges, detailed hardware specifications, or results from independent testing. It is not clear from the supplied material how performance changes across cloud regions, network conditions, thread counts, storage providers, or different query patterns. Nor does the excerpt establish whether the alpha’s measurements match the eventual stable release.

The 40-fold recursive CTE claim is also not accompanied here by a dataset description, baseline version, query, or measurement method. The report’s stated fall release timing is not tied to a year in the supplied text, so a current release date and the final feature set cannot be confirmed from this source alone.

Watch for Release Benchmarks

The report said DuckDB 2.0 was expected in the fall and that an alpha was available, but the supplied source does not state a publication date or confirm whether a stable release has since shipped. The next useful evidence would be release notes and reproducible benchmarks comparing the final build with earlier versions across more machines and workloads.

Users evaluating the alpha can compare their own remote-file queries, noting file sizes, formats, network location, and settings such as read_ahead_depth. Results from those tests would help establish whether the gains extend beyond the report’s particular setup and whether the recursive CTE rewrite benefits ordinary hierarchical queries as well as graph-reachability tests.

Key Questions

What is the main reason DuckDB 2.0 reads some S3 data faster?

The alpha uses asynchronous read-ahead: a separate pool downloads row groups while worker threads decode and process data, reducing time spent waiting on network requests.

How much faster was the reported Parquet test?

MotherDuck measured 7.7 seconds in the DuckDB 2.0 alpha and 18.8 seconds in DuckDB 1.5.5 for one query against a 2.2 GB Parquet file. The result came from one laptop and a home internet connection.

Will every DuckDB query be faster?

No such conclusion is established by the report. Gains depend on the workload; its test of 30 small Parquet files showed only a modest timing difference, from 3.7 seconds to 3.3 seconds.

What does the 40-fold recursive CTE claim refer to?

The report attributes a 40-fold graph-reachability speedup to a rewritten recursive CTE engine. The supplied material does not include enough benchmark details to determine how broadly that figure applies.

Is DuckDB 2.0 a stable release?

The source describes a 2.0 alpha and says the release was expected in the fall, but does not specify the year or confirm the current stable-release status.

Source: hn

You May Also Like

Unlocking The Power Of Grok Bot’s Latest X.ai Integration

xAI announces Grok Bot now works with X, linking AI assistant directly to the social platform. Details on features, availability, and data handling remain unclear.

Readiness: Before You Fund The Answer

A new diagnostic tool offers organizations a 20-minute check to determine if their AI investments are viable, avoiding costly failures.

When One Agent Isn’t Enough: Claude Now Builds Its Own Team of Agents on the Fly

Anthropic’s Claude now autonomously creates and manages its own team of sub-agents for complex tasks, enhancing multi-step AI workflows.

Twenty Years Of Pandoc

Pandoc marks its 20th anniversary, highlighting its evolution and impact as a versatile document conversion tool used worldwide.