We open-sourced our first Rust crate — because the client was always the slow part
Here is the number that kicked off this project: at 100,000 returned rows, the same Athena query took 26.84 seconds through the standard paginated result path and 2.37 seconds through a Parquet path. That's an 11.33x difference — and Athena itself was never the reason.
The engine did identical work in both cases, roughly 1.3 seconds each. Everything expensive happened after the query finished: in the unglamorous last mile of moving the result onto the machine. The standard GetQueryResults API hands back string-shaped rows, 1,000 at a time, so a 100,000-row result needs ~100 paginated calls and a pile of client-side type conversion. Meanwhile the tools that actually consume the data — Polars, DataFusion, DuckDB, our own runtime — all speak Apache Arrow. We had a columnar engine delivering pages of rows to a columnar consumer.
The client was always the slow part
That mismatch is a small example of a pattern we keep running into. For decades, every serious optimization has gone into the server — query planners, columnar storage, distributed execution, vectorized scans. The client stayed dumb: row-at-a-time APIs, string serialization, pagination. We keep making the engine faster and then hand its output to a delivery path built like it's 2009.
This is exactly what OrcaSheets exists to fix. Our whole thesis is to optimize what's closest to the user — the person in front of the screen should get priority, not whatever's easiest to serve from the cloud. A local-first analytics application lives or dies on how fast it can pull a slice of the lake onto your machine and keep going. So we built that bridge ourselves.
Introducing athena-arrow-core
Today we're releasing the core of it as open source: athena-arrow-core, DataOrc's first open-source Rust crate. It's an async Rust client that returns Arrow RecordBatches directly, with two retrieval paths behind one API:
- Paginated GetQueryResults for small control queries. - Athena UNLOAD-to-S3-Parquet for bulk analytical results.
…plus a router that picks between them by SQL shape — and tells you which path it used.
Published with the caveats attached
We wrote the whole thing up on Medium, and we tried to do it honestly. That means publishing the caveats alongside the wins:
- Where our current routing threshold is probably too conservative. - Why the vanilla-CSV comparison isn't a headline number. - Why caching ships off by default — reusing a fast stale result is a correctness bug, not a feature. - Which comparisons — like the modern Athena JDBC 3.x S3 fetcher — we still owe you.
Every benchmark row carries wall time, engine time, bytes scanned, row and column counts, Arrow bytes, and the Athena query ID, with checksums, so you can reproduce it instead of trusting us.
We'd like your help
If you work with Athena, Hudi, Iceberg, or any local-first analytical stack, we'd genuinely like your help finding where the crossover between the two paths really lives — across projection width, table format, and network location.
Links
- Full write-up on Medium — [Your Athena query already finished. Your client is still working.](https://dataorc.medium.com) - Crate — [athena-arrow-core on crates.io](https://crates.io/crates/athena-arrow-core) - Source & reproducible benchmark protocol — [adbcdriverathena repository](https://github.com/dataorc)
This is the first piece of the OrcaSheets stack we've published in the open — more will follow.