Straum
Straum is a tool written in Rust that accelerates PostgreSQL GROUP BY queries: aggregates are declared as a view, and Straum serves the results over HTTP. It ingests data through Postgres replication slots (logical or physical) while Postgres stays the source of truth. The submitter reports roughly 1,000x to 5,000x speedups on heavier GROUP BYs using the New York taxi dataset as a benchmark.
What it addresses
Slow PostgreSQL queries where a GROUP BY makes Postgres blow up.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Straum
Straum is a tool written in Rust that accelerates PostgreSQL GROUP BY queries: aggregates are declared as a view, and Straum serves the results over HTTP. It ingests data through Postgres replication slots (logical or physical) while Postgres stays the source of truth. The submitter reports roughly 1,000x to 5,000x speedups on heavier GROUP BYs using the New York taxi dataset as a benchmark.
Problem: Slow PostgreSQL queries where a GROUP BY makes Postgres blow up.
Posted by @jeeybee · Original source ↗
Story title · @jeeybee · · Source ↗
Show HN: Straum – PostgreSQL Group by in Microseconds
Submitted URL · @jeeybee · · Source ↗
https://github.com/janbjorge/straum
Source text · @jeeybee · · Source ↗
I've seen too many slow-log queries with a GROUP BY that makes Postgres blow up, so for the last two weeks or so I've been working on Straum.
Source text · @jeeybee · · Source ↗
You declare the aggregates as a view, and Straum answers over HTTP (other transports might be added).
Source text · @jeeybee · · Source ↗
It leans on Postgres replication slots, logical or physical, to get its data. Postgres stays the source of truth.
Source text · @jeeybee · · Source ↗
It's written in Rust (of course).
Source text · @jeeybee · · Source ↗
On the heavier GROUP BYs I see about 1,000x to 5,000x.
Source text · @jeeybee · · Source ↗
Benchmark: https://janbjorge.github.io/straum/benchmark.html