NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
PERFORMANCE

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.

RasterizedDB 1.0 rc.2PostgreSQL 18.7· queries per second, higher is better
Point read by key, preparedPostgreSQL's best case
51k
57k
PG
Point read by key, textno prepare: what most apps send
50k
27k
RDB
100-row range
18.8k
13.7k
RDB
1000-row range, prepared
3.2k
3.6k
PG
Filtered COUNT / SUMwhole table
92
42
RDB
GROUP BY, 100 groupswhole table
90
20
RDB
ORDER BY … LIMIT 10whole table
86
40
RDB

Whole-table queries ran PostgreSQL with the workers it planned (3). Given 8 workers it reaches 55 / 25 / 50.

HOW IT GETS FAST

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.

HOW IT WORKS · ANIMATED 12 s cycle

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.

RUN 1 · WHERE id = 8812 PARSEtokens → plan tree DESCRIBEcolumns, types, scales PLANfull key → index point EXECUTE1 row LEARNED SHAPE WHERE id = $1 cols: id, total plan: pk point lookup RUN 2 · WHERE id = 9001 MATCHshape found BIND$1 = 9001 PARSE · DESCRIBE · PLANskipped KEY LOOKUP✓ 1 row server instructions per native point query ~1,000k before learned plans ~95k with them
  1. 1
    First run: parse

    SELECT * FROM orders WHERE id = 8812 is tokenized and parsed into a plan tree.

  2. 2
    Describe

    The output columns, their types and scales are worked out, once, for the client.

  3. 3
    Plan

    The WHERE fixes the whole primary key, so the plan is an index point lookup, not a scan.

  4. 4
    Learned

    The shape, with the value as a hole, is stored with its description and index plan.

  5. 5
    Next run: match and bind

    WHERE id = 9001 matches the learned shape; 9001 is bound into the hole. No parse, no describe.

  6. 6
    Straight to the key

    The index plan runs at once. Native point queries fell from about 1,000k to about 95k server instructions.

0

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.

before any data
1

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.

machines
2

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.

file sets
3

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.

keys
4

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.

row slots
5

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.

cells
6

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.

bytes
VACUUM PRESSURE

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.

Protocolk-instructions / point query
rastcp EXEC83
rastcp text85
PostgreSQL wire, prepared89
PostgreSQL wire, text92

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.

3.37Mops/s, 32 B, pipeline 16, server on 4 cores
2.45×the best of Redis 7.4 and Valkey 8.1, same run
403kops/s, 1 KiB values, unpipelined
2.85 msp99 vs Valkey io-threads' 4.08 ms
THE FULL TABLE AND THE SETUP →

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.

GET STARTED

Running in one command.

Linux and Windows, x86-64 and ARM64, a static musl build, an Arch package, or Docker.

terminalDOCKER
# 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"
✓ page rendered in 195 µs axum + tera + htmx · no other javascript