Performance
7 posts from the Query.Farm blog tagged Performance.
Lindel for DuckDB 2.0: curve keys that sort like your data
Our Hilbert and Morton extension now keeps negative numbers, floats and dates in order, quantizes lat/lon onto a grid, and decomposes box queries into key ranges. Sorting 20 million points by a Hilbert key cut a Parquet box query from 200 row groups to 2. Joining on the key ranges never helped inside DuckDB.
Why we passed on more filters for DuckDB’s bitfilters
We evaluated BuRR, Taffy, Grafite, Diva++, and partitioned Binary Fuse for DuckDB’s bitfilters extension. See the memory, speed, and correctness tradeoffs.
DataSketches for DuckDB 2.0: sketch aggregates now stay within the memory limit and spill to disk
A grouped KLL query used 39 GB under a 1 GB memory limit. Now it uses 0.77 GB and runs 3.7× faster. Here's how we moved 15 sketch families into DuckDB's spillable memory, and the library bugs we fixed along the way.
DuckDB-Wasm startup: from 6.8 to 2.3 seconds with Haybarn-Wasm
Haybarn-Wasm, a drop-in fork of DuckDB-Wasm, loads five extensions in 1.9 seconds, against 5.4 for upstream. Here's where the startup time went and how we cut it.
Call an API From Every Row in DuckDB, Without the Loop
A table function turns an API call into rows in your database. A LATERAL join lets every row on the left call it — and VGI makes those calls in batches.
DuckDB 2.0 Pushes Whole Queries Through ADBC—10–11× Faster on PostgreSQL
Query Farm's adbc_scanner uses DuckDB 2.0 whole-query pushdown to run supported queries entirely in PostgreSQL. In our benchmark, it was 10–11× faster.
Building DuckDB's Community Extensions, Faster and More Consistently
Every DuckDB engine release needs its community extensions rebuilt before they install. With data from 1,400+ PRs and a full-catalogue rebuild, we make the case for treating the catalogue as a distribution — and show Haybarn rebuilds it ~2.4× faster.