hn.today

DuckDB Scales: DuckDB for the Long-Tail of Workloads

ducklabs.com13 points0 comments
Screenshot of DuckDB Scales: DuckDB for the Long-Tail of Workloads

DuckDB Scales is a distributed extension designed to let DuckDB handle rare but valuable queries over petabyte-scale datasets without changing its familiar SQL approach. It targets workloads that exceed one server’s practical capacity, rather than replacing single-machine DuckDB for everyday analytics. Data remains in object storage in lakehouse formats such as DuckLake or Iceberg. A coordinator divides a query into stages and assigns workers self-contained SQL tasks; workers exchange intermediate results through files in shared storage, not direct machine-to-machine communication. This design supports task retries and idempotent execution. Scales also uses speculative execution: it starts a local query first and launches the cluster plan shortly afterward, keeping small queries from paying unnecessary distributed-computing overhead.

Benchmark results show substantial scale-out performance. On TPC-H at scale factor 100,000 - a 100 TB dataset with roughly 866 billion rows - aggregation query Q1 took 37.5 seconds with 64 workers, 21.1 seconds with 128, and 11.1 seconds with 256, reaching 84% scaling efficiency from 64 to 256 workers. Across the full TPC-H workload, 256 nodes achieved a median runtime of 57.1 seconds, compared with 1.19 hours on a large single machine in an earlier test. The system is available as a preview in Amazon Athena; DuckLabs plans an open-source release in the first half of 2027. Small queries remain better suited to regular DuckDB, since distributed queries carry a fixed cost of several hundred milliseconds.

Read on ducklabs.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.