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.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.