News for hackers. Stuff that matters.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by philbe77 on Friday October 24, 2025 @03:15PM (#45698118)
hi sdairs, we did store the data on the worker nodes for the challenge, but not in memory. We wrote the data to the local NVMe SSD storage on the node. Linux may cache the filesystem data, but we didn't load the data directly into memory. We like to preserve the memory for aggregations, joins, etc. as much as possible...

It is true you would need to run the instance(s) 24/7 to get the performance all day, the startup time over a couple minutes is not ideal. We have a lot of work to do on the engine, but it has been a fun learning experience...

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by sdairs on Friday October 24, 2025 @03:46PM (#45698396)
Thanks for clarifying; I'm not trying to take anything away from you, I work in the OLAP space too so it's always good to see people pushing it forwards. It would be interesting to see a comparison of totally cold Vs hot caches.

Are you looking at distributed queries directly over S3? We did this in ClickHouse and can do instant virtual sharding over large data sets S3. We call it parallel replicas https://clickhouse.com/blog/clickhouse-parallel-replicas

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by tanelpoder on Friday October 24, 2025 @06:23PM (#45699715)
(I submitted this link). My interest in this approach in general is about observability infra at scale - thinking about buffering detailed events, metrics and thread samples at the edge and later only extract things of interest, after early filtering at the edge. I’m a SQL & database nerd, thus this approach looks interesting.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by otterley on Friday October 24, 2025 @03:39PM (#45698329)
“Linux may cache the filesystem data” means there’s a non-zero likelihood that the data in memory unless you dropped caches right before you began the benchmark. You don’t have to explicitly load it into memory for this to be true. What’s more, unless you are in charge of how memory is used, the kernel is going to make its own decisions as to what to cache and what to evict, which can make benchmarks unreproducible.

It’s important to know what you are benchmarking before you start and to control for extrinsic factors as explicitly as possible.

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by jamesblonde on Friday October 24, 2025 @04:40PM (#45698827)
With 2 modern NVMe disks per host (15 GB/s) and pcie 5.0, it should only take 15s to read 30 TB into memory on 63 hosts.

You can find those disks on Hetzner. Not AWS, though.

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by jiggawatts on Friday October 24, 2025 @09:36PM (#45700721)
I don’t understand why both Azure and AWS have local SSDs that are an order of magnitude slower than what I can get in a laptop. If Hetzner can do it, surely so can they!

Not to mention that Azure now exposes local drives as raw NVMe devices mapped straight through to the guest with no virtualisation overheads.

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by jamesblonde on Saturday October 25, 2025 @09:09AM (#45703618)
It would undercut all their higher level services - like DynamoDB, CosmosDB, etc.

Databases would suddenly go BRRR in the cloud and show up cloud-native (S3) based databases for the high latency services they are.