Oriel — AI & technology worth noticing, every day.

Why DuckDB 2.0 is faster

Web page · https://motherduck.com/blog/why-duckdb-20-is-faster

First seen by Oriel on .

AI summary

The article benchmarks DuckDB 2.0 alpha and explains how async I/O, recursive CTE improvements, and VARIANT storage can speed up common data and pipeline workloads.

  • On the author’s M5 laptop, async S3 reads took 7.7 seconds versus 18.8 seconds in DuckDB 1.5.5 for a 2.2 GB Parquet file; read_ahead_depth enables downloading ahead by default.
  • Recursive CTEs now build a parent-column lookup once instead of rereading the table each round; a 20,000-commit ancestry walk fell from 1.8–16 seconds to 0.10 seconds.
  • VARIANT shreds consistent JSON fields into column-like storage, using 85 MB versus 224 MB for JSON strings in the five-million-event test.
  • Queries on shredded VARIANT fields ran about six times faster than JSON-string parsing and within 20% of typed columns, but list casts were slower in the alpha.
  • The article recommends consistent field types, promoting frequently queried fields to real columns, and notes that tiny Parquet files see little benefit from async read-ahead.

#duckdb #parquet #s3 #json

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Hacker News50035530https://motherduck.com/blog/why-duckdb-20-is-faster/ Read discussion