Measured, with the setup
and the losses shown.
Every figure here names its machine, versions and workload. Where PostgreSQL wins, the chart says so.
Against PostgreSQL 18.7.
RasterizedDB v1.0.0-rc.2 (the PGO + BOLT release binary) against PostgreSQL 18.7 (glibc image, shared_buffers 2 GB). One table of 1M rows, unix sockets, servers on cores 0-7, client on 8-15, i9-11900K. Every answer was checked: 0 wrong out of 144 runs.
Whole-table queries ran PostgreSQL with the workers it planned (3). Given 8 workers it reaches 55 / 25 / 50.
Each layer throws away work
before the next one has to do it.
A query should touch as little data as possible. RasterizedDB narrows the search in layers, from the whole cluster down to the few rows that answer it. The first layer costs nothing to set up: it is there for every column of every table.
A repeated statement skips the work it already did
The first run of a statement shape pays for parsing, describing and planning. The engine keeps what it learned, keyed by the shape, and the next run with new values goes straight to the lookup.
- 1First run: parse
SELECT * FROM orders WHERE id = 8812 is tokenized and parsed into a plan tree.
- 2Describe
The output columns, their types and scales are worked out, once, for the client.
- 3Plan
The WHERE fixes the whole primary key, so the plan is an index point lookup, not a scan.
- 4Learned
The shape, with the value as a hole, is stored with its description and index plan.
- 5Next run: match and bind
WHERE id = 9001 matches the learned shape; 9001 is bound into the hole. No parse, no describe.
- 6Straight to the key
The index plan runs at once. Native point queries fell from about 1,000k to about 95k server instructions.
Learned statements
A repeated statement shape is learned: its parse, its output description and, for a unique key, its index plan. The next run skips straight to the lookup. Native point queries fell from ~1,000k to ~95k server instructions with this.
Shards NEW IN 1.1
The gateway sends a statement that carries its route key to the one machine that owns it. The other machines never see it.
Partitions
Within a machine, a statement that fixes the partition key touches only the partitions that can hold its rows, and lazy partitions mean the rest are not even open.
Secondary indexes
B-tree, hash and GIN indexes, and unique and primary keys, go straight to a key's rows when you have declared one.
The automatic filter index
On every column, indexed or not: zone maps skip ranges whose min/max cannot match (0.25 bits per row), and bit-sliced fingerprints test 512 rows per SIMD register. Only candidates are read from disk.
Doing less with what is read
Visibility is checked in batches. Aggregates fold straight from cells without building rows. ORDER BY … LIMIT fetches only the rows that can still win. Query threads split the scan across cores.
The right tier
Hot tables in memory or on NVMe, history in S3. Moving cold data out of the way keeps the working set small, so every layer above has less to look at.
Partitions and shards
make vacuum small.
Every update leaves a dead version and every delete a tombstone; vacuum has to find them and hand the space back. In one big table that means sweeping every pointer of the table, and the sweep's cost grows with the table, not with what changed.
- Vacuum state is per partition. Each partition has its own pointer file, free list and background sweep. A sweep walks one partition's pointers, so its cost follows that partition's size, not the whole table's.
- Quiet partitions cost nothing. The background vacuum starts on a partition when that partition's own dead space crosses its threshold. A partition nobody updates never reaches it, so the churn decides the work, not the size of the table.
- Reclaimed space stays local. A partition's free list feeds that partition's inserts, so a busy tenant reuses its own holes and never fragments a quiet one.
- Compaction locks less. A DELETE or VACUUM FULL over one tenant's partition blocks only that partition, not the table.
- Shards divide it again. Each shard vacuums only its own key ranges, on its own CPU and disk, in parallel with the others. With per-user shards, one churning customer cannot make another customer's vacuum longer.
Four protocols, same query.
Server instructions per point query by key over unix sockets, 16 clients, counted by perf in the timed window only, on the 1.0 development line (2026-11-21). Lower is better.
| Protocol | k-instructions / point query |
|---|---|
| rastcp EXEC | 83 |
| rastcp text | 85 |
| PostgreSQL wire, prepared | 89 |
| PostgreSQL wire, text | 92 |
MySQL and SQL Server clients are bridged through the PostgreSQL path inside the server, so they pay about 1k to 2.5k instructions more per row returned.
The KV store.
How we measure
Interleaved A/B rounds, medians of three, and our worst run against their best when a machine is noisy. Instruction counts per query where wall-clock time is unreliable.
What we do not claim
No tail-latency numbers for sharding yet, and no multi-host cluster figures: the sharding numbers on these pages come from one box.
Run it yourself
rdb_studio's BENCH screen measures any statement over N connections against your own data, native, simple or prepared, with the latency distribution to p99.9.
Running in one command.
Linux and Windows, x86-64 and ARM64, a static musl build, an Arch package, or Docker.
# PostgreSQL on 5432, native on 61170 docker run -d --name rasterizeddb \ -e RASTERIZEDDB_PG_PASSWORD=change-me \ -p 5432:5432 -p 61170:61170 \ -v rasterizeddb:/var/lib/rasterizeddb \ milendenev/rasterizeddb:latest psql "postgresql://superuser@127.0.0.1:5432/postgres"