Skip to content
Contents

Performance

The Hydrate, Update, Fan-Out and Memory tabs run on Chinook ×30 (105k tracks) on a MacBook Pro M5 Pro. SQLite and Rindle get the same indexes. The Throughput tab is a different measurement — a real rindled in its own process, driven over HTTP and WebSocket by loadgen — and carries its own provenance.

Hydrate is the time to create a live query and return its first result. Rindle is usually a little slower than SQLite because it must do some setup to keep queries live later. This is typically paid back within one update.

SQLiteRindle
QuerySQLiteRindleRindle vs. SQLite
Page: one genre's 100 longest tracks12.7 µs14.9 µs1.2× slower
Top 50: top 50 tracks by length6.59 µs8.32 µs1.3× slower
Nested: 10 albums, 10 newest tracks each22.8 µs19.9 µs1.1× faster
Full join: all albums with all their tracks10 ms9.59 msabout even
EXISTS: 100 newest albums with a track in a genre41 µs68 µs1.7× slower

Each query has its own scale. Measured 2026-11-10 (2026-11-10-apple-m5-pro-exists-pass.txt).

Update is the time to deliver a new result after data changes. A classic database has to re-run the query from scratch, while Rindle only does work in proportion to the size of the edit. The advantage depends on how expensive the original query was.

SQLite re-runRindle update
QuerySQLite re-runRindle updateRindle vs. SQLite re-run
Top 50: top 50 tracks by length9.02 µs1.93 µs4.7× faster
Nested: 10 albums, 10 newest tracks each20.3 µs1.94 µs10× faster
EXISTS: 100 newest albums with a track in a genre42.5 µs1.9 µs22× faster
Page: one genre's 100 longest tracks14.8 µs1.91 µs7.7× faster
Full join: all albums with all their tracks10.1 ms2.46 µs4,100× faster

Each query has its own scale. Measured 2026-11-10 (2026-11-10-apple-m5-pro-exists-pass.txt).

Polling

Most apps want to know when a query’s result changes so they can do something in response. Without live queries, these apps often resort to polling. With Rindle, polling is unnecessary: Rindle does no work while the data is unchanged, and tells the app the moment a new result is ready.

This table models what polling costs, in CPU and in staleness, for a given poll rate and rate of change. Move the sliders to try different settings.

QueryCPU/s
SQLite
CPU/s
Rindle
RindleStaleness
SQLite
Staleness
Rindle
Rindle
top 50 tracks by length1.8 µs0.032 µs56× cheaper2.5 s1.93 µs1,300,000× fresher
one genre's 100 longest tracks2.96 µs0.032 µs93× cheaper2.5 s1.91 µs1,300,000× fresher
10 albums, 10 newest tracks each4.06 µs0.032 µs130× cheaper2.5 s1.94 µs1,300,000× fresher
100 newest albums with a track in a genre8.5 µs0.032 µs270× cheaper2.5 s1.9 µs1,300,000× fresher
all albums with all their tracks2.02 ms0.041 µs49,000× cheaper2.51 s2.46 µs1,000,000× fresher

Polling CPU is the re-run time divided by the poll interval, paid whether or not anything changed. Rindle CPU is the update time per change. Staleness is the average time from a write to the new result. For 1,000 people watching, polling multiplies by 1,000; Rindle doesn’t, which is the Fan-out tab.

In most apps, one write can affect many live queries. We call this fan-out. When a query filters on a specific column and value, like AlbumId = 7, Rindle indexes the query by that value and only checks it when a write touches a row with that value. Every other query never sees the write at all.

WriteINSERT INTO Track
(…, AlbumId = 7,
 GenreId = 2 /* Jazz */,
 MediaTypeId = 1 /* audio */)
Track WHERE AlbumId = 7 …updated

This works for column = value filters. Other filters, like ranges, are checked against each write.

As the number of live queries grows, the cost to re-run grows linearly, but Rindle’s cost grows far more slowly.

Live queriesSQLite, re-run allRindle, per writeRindle vs. SQLite re-run
114.3 µs1.94 µs7.4× faster
862.1 µs1.97 µs31× faster
64678 µs2.36 µs290× faster
5125.67 ms4.48 µs1,300× faster
1,02411.4 ms6.92 µs1,600× faster

Each live query is a genre’s or an album’s 100 longest tracks, alternating. Each write is a new track. Measured 2026-11-10 (the fanout_mixed cell, 2026-11-10-apple-m5-pro-exists-pass.txt).

Query Families

Many live queries are actually the same query with a single different filter value: each person’s own issues, each team’s own channel, etc. Rindle recognizes these and collapses them into a single query family.

Album WHERE ArtistId = 1 /* AC/DC */ …
Album WHERE ArtistId = 50 /* Metallica */ …
Album WHERE ArtistId = 90 /* Iron Maiden */ …
One pipeline: Album WHERE ArtistId = ?
20 newest albums, 5 newest tracks each
AC/DCMetallicaIron Maiden…

A new track on a Metallica album reaches only Metallica’s partition.

Sharing a pipeline makes each write cheap, even when it lands on a related table, like a new track, where the index can’t tell whose list it belongs to. It also saves memory.

People watchingSQLite, re-run allRindle, per writeRindle vs. SQLite re-run
1001.27 ms4.96 µs260× faster
1,00012.3 ms5.28 µs2,300× faster
5,00061.6 ms5.5 µs11,000× faster

Each person watches their artist’s 20 newest albums, each with its 5 newest tracks. Each write adds a track to one watched album, so one person’s result changes. Measured 2026-11-10 (the family cell, 2026-11-10-apple-m5-pro-exists-pass-family.txt).

Wmax ≈ min ( 75,000 , 500,000 Q⋅S )
  • Wmax is the most writes per second Rindle can sustain with one core running queries.
  • Q is the number of live queries.
  • S is the fraction of those queries a typical write reaches. Not every write reaches every query.
  • Q · S is the number of queries one write updates.

Rindle groups queries that differ only in the values they filter on, such as WHERE owner_id = 42 and WHERE owner_id = 43. A write is matched against the whole group once, and updates only the queries whose values it matches. This is what keeps S small: a write costs nothing for the queries it doesn’t match, however many there are.

Only the product Q · S matters, which is why 500 queries that each see every write and 50,000 queries that each have a 1% chance of seeing one are the same load.

If every query sees every write (S = 1):

  • 1 query: ~75,000 writes/s
  • 6 queries: ~75,000
  • 64 queries: ~7,800
  • 500 queries: ~1,000
  • 50,000 queries: ~10

If a write has a 1% chance of touching any one query (S = 0.01):

  • 100 queries (Q · S = 1): ~75,000 writes/s
  • 600 queries (Q · S = 6): ~75,000
  • 50,000 queries (Q · S = 500): ~1,000

Both constants are rounded down from the measurements below, so the formula predicts between 1.1× and 7× less than what we measured.

Measurements

Each line holds one workload fixed and raises the write rate. Latency stays flat while Rindle keeps up, then rises sharply. The large marker is the last rate that kept up.

The first four lines are one query registered many times over, so every write is derived into every copy. The last two are a query per person, where each write is derived once.

Where delivery stops keeping up
1 query sees allone unfiltered channel query: every write is derived into it64 queries see allthe same query 64 times over, so one write is derived 64 times256 queries see all256 derivations per write1,024 queries see all1,024 derivations per write — the pathological case, drawn so the shape is honest1,000 own listsa per-person list: the write carries one person's key, so it is derived once100 own pagesthe same, over a three-deep page: tags through a junction, owner, creator, top comments with their authorsheldwrite-boundbehind
10ms100ms1s10s1k10k100kOffered write rate (rows/s)Delivery lag, p99write ceiling, nothing registered — 406k1 query sees all: offered 60k rows/s, delivered 59.9k, p99 2.63ms — held1 query sees all: offered 100k rows/s, delivered 99.8k, p99 2.34ms — held1 query sees all: offered 180k rows/s, delivered 180k, p99 2.02ms — held1 query sees all: offered 250k rows/s, delivered 250k, p99 8.59ms — held1 query sees all: offered 320k rows/s, delivered 320k, p99 10.1ms — held1 query sees all: offered 400k rows/s, delivered 386k, p99 10.6ms — held1 query sees all64 queries see all: offered 10k rows/s, delivered 10k, p99 13.7ms — held64 queries see all: offered 25k rows/s, delivered 25k, p99 80.2ms — held64 queries see all: offered 45k rows/s, delivered 45k, p99 92.1ms — held64 queries see all: offered 52k rows/s, delivered 51.8k, p99 231ms — held64 queries see all: offered 58k rows/s, delivered 57.2k, p99 243ms — held64 queries see all: offered 65k rows/s, delivered 60.6k, p99 661ms — delivery fell behind64 queries see all: offered 90k rows/s, delivered 60.6k, p99 3.2s — delivery fell behind64 queries see all256 queries see all: offered 2k rows/s, delivered 2.01k, p99 25.1ms — held256 queries see all: offered 5k rows/s, delivered 5k, p99 33.1ms — held256 queries see all: offered 10k rows/s, delivered 9.99k, p99 91.9ms — held256 queries see all: offered 12k rows/s, delivered 11.8k, p99 238ms — held256 queries see all: offered 14k rows/s, delivered 13.6k, p99 287ms — delivery fell behind256 queries see all: offered 16k rows/s, delivered 14.7k, p99 911ms — delivery fell behind256 queries see all: offered 25k rows/s, delivered 12.8k, p99 9.39s — delivery fell behind256 queries see all1,024 queries see all: offered 500 rows/s, delivered 502, p99 85.9ms — held1,024 queries see all: offered 1.5k rows/s, delivered 1.5k, p99 103ms — held1,024 queries see all: offered 2.2k rows/s, delivered 2.2k, p99 134ms — held1,024 queries see all: offered 3k rows/s, delivered 2.49k, p99 2.03s — delivery fell behind1,024 queries see all: offered 4k rows/s, delivered 2.38k, p99 6.74s — delivery fell behind1,024 queries see all: offered 10k rows/s, delivered 2.38k, p99 31.7s — delivery fell behind, 224 queries shed1,024 queries see all1,000 own lists: offered 20k rows/s, delivered 20k, p99 2.32ms — held1,000 own lists: offered 45k rows/s, delivered 45k, p99 2.74ms — held1,000 own lists: offered 80k rows/s, delivered 80k, p99 6.15ms — held1,000 own lists: offered 100k rows/s, delivered 100k, p99 22.5ms — held1,000 own lists: offered 120k rows/s, delivered 120k, p99 27.9ms — held1,000 own lists: offered 140k rows/s, delivered 140k, p99 98.7ms — held1,000 own lists: offered 170k rows/s, delivered 139k, p99 130ms — write-bound — delivery kept up, the write path did not reach the offer1,000 own lists100 own pages: offered 10k rows/s, delivered 10k, p99 4.13ms — held100 own pages: offered 30k rows/s, delivered 30k, p99 3.03ms — held100 own pages: offered 55k rows/s, delivered 55k, p99 5.14ms — held100 own pages: offered 75k rows/s, delivered 75k, p99 14.7ms — held100 own pages: offered 80k rows/s, delivered 78.9k, p99 40.4ms — held100 own pages: offered 82k rows/s, delivered 80.2k, p99 47.6ms — held100 own pages: offered 90k rows/s, delivered 83.9k, p99 92.6ms — write-bound — delivery kept up, the write path did not reach the offer100 own pages: offered 130k rows/s, delivered 86k, p99 55.5ms — write-bound — delivery kept up, the write path did not reach the offer100 own pages

1 query sees all: 386k rows/s at 10.6ms p99, no knee below the write ceiling64 queries see all: 57.2k rows/s at 243ms p99, behind at 65k256 queries see all: 11.8k rows/s at 238ms p99, behind at 14k1,024 queries see all: 2.2k rows/s at 134ms p99, behind at 3k1,000 own lists: 140k rows/s at 98.7ms p99, no knee below the write ceiling100 own pages: 80.2k rows/s at 47.6ms p99, no knee below the write ceiling

Numbers
Where delivery stops keeping up — every rung, including the ones past the knee. held = the daemon took everything offered and delivered it all; write-bound = delivery kept up but the write path did not reach the offer, which is a ceiling and not a knee; behind = delivery fell behind, which is the knee. A non-zero shed means the lateness trigger dropped queries, so that row is a rate across pipelines some of which stopped being maintained. Peak late is the worst query's lateness when the senders stopped, against the 10-second budget that triggers a shed — which is why a rung can be far behind and shed nothing. † marks a rung whose frontier never converged inside the drain deadline; ‡ one whose tail is more than 20× its median, expected right of the knee and never quoted as a rate.
ShapeOfferedCommits/sDelivered/sSustainLag p50Lag p99Shed · peak lateVerdict
1 query sees allQ×S = 160k60k59.9k100%625µs2.63ms0 · 0msheld
100k100k99.8k100%539µs2.34ms0 · 0msheld
180k180k180k100%406µs2.02ms0 · 0msheld
250k250k250k100%456µs8.59ms0 · 0msheld
320k320k320k100%672µs10.1ms0 · 0msheld
400k386k386k100%6.32ms10.6ms0 · 0msheld
64 queries see allQ×S = 6410k10k10k100%2.03ms13.7ms0 · 0msheld
25k25k25k100%2.19ms80.2ms0 · 0msheld‡
45k45k45k100%2.98ms92.1ms0 · 1msheld‡
52k52k51.8k100%3.9ms231ms0 · 23msheld‡
58k58k57.2k99%5.72ms243ms0 · 127msheld‡
65k65k60.6k93%191ms661ms0 · 634msbehind
90k90k60.6k67%1.46s3.2s0 · 2sbehind
256 queries see allQ×S = 2562k2.01k2.01k100%6.24ms25.1ms0 · 0msheld
5k5.01k5k100%6.15ms33.1ms0 · 0msheld
10k10k9.99k100%8.25ms91.9ms0 · 0msheld
12k12k11.8k98%9.78ms238ms0 · 209msheld‡
14k14k13.6k97%13.7ms287ms0 · 269msbehind‡
16k16k14.7k92%320ms911ms0 · 846msbehind
25k25k12.8k51%4.29s9.39s0 · 4.37sbehind
1,024 queries see allQ×S = 1,024500503502100%25.7ms85.9ms0 · 1msheld
1.5k1.51k1.5k100%24.9ms103ms0 · 0msheld
2.2k2.21k2.2k100%30.4ms134ms0 · 0msheld
3k3.01k2.49k83%944ms2.03s0 · 1.53sbehind
4k4.01k2.38k59%3.1s6.74s0 · 3.98sbehind
10k10k2.38k24%15.7s31.7s224 · 7.43sbehind
1,000 own listsQ×S = 120k20k20k100%1.11ms2.32ms0 · 0msheld
45k45k45k100%997µs2.74ms0 · 0msheld
80k80k80k100%1.51ms6.15ms0 · 0msheld
100k100k100k100%1.67ms22.5ms0 · 0msheld
120k120k120k100%2.2ms27.9ms0 · 0msheld
140k140k140k100%14.6ms98.7ms0 · 7msheld
170k140k139k99%27.4ms130ms0 · 56mswrite-bound
100 own pagesQ×S = 110k10k10k100%1.8ms4.13ms0 · 0msheld
30k30k30k100%1.11ms3.03ms0 · 3msheld
55k55k55k100%1.49ms5.14ms0 · 0msheld
75k75k75k100%2.34ms14.7ms0 · 0msheld
80k78.9k78.9k100%8.42ms40.4ms0 · 0msheld
82k80.2k80.2k100%28.6ms47.6ms0 · 0msheld
90k84k83.9k100%29ms92.6ms0 · 0mswrite-bound
130k86k86k100%28.1ms55.5ms0 · 0mswrite-bound

Apple M5 Pro, 15 logical cpu, 24 GiB, Mac17,9; macOS 26.7.2 (25G332) · 2026-11-10 · NOT pinned — one IVM worker, whole machine available; not a per-vCPU figure · daemon in its own process · rust/rindle-loadgen/results/2026-11-10-mac179

A line that reaches the vertical rule was limited by the write path, not by live queries.

Past its limit, Rindle doesn’t slow writes down. It drops a query that falls more than ten seconds behind and rebuilds it. The shed column counts those drops, and a row with a shed in it is not a sustained rate.

Scaling Further

These numbers are for one core running queries. More cores sustain more distinct queries, up to four. A fifth currently makes things slower.

Grouping works for equality filters on a query’s main table. Other query shapes are not grouped, and a skipped query still costs the write path a little.

An incremental engine has to remember something about each live query so it can update it later. If that memory grows with the size of the tables, live queries get expensive fast.

Rindle collapses large numbers of active queries into a small number of query families, reducing memory usage to a small constant factor of maintained rows.

Live queriesRindle memoryPer queryPer maintained row
100180 KB1.8 KB220 B
1,0001.52 MB1.52 KB204 B
5,0007.47 MB1.49 KB204 B

Each query is an album’s 10 longest tracks. Engine memory only, not counting the results sent to clients or the database itself. Measured 2026-11-10 (the family_page10 cell, 2026-11-10-apple-m5-pro-exists-pass-family.txt).