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.
| Query | SQLite | Rindle | Rindle vs. SQLite |
|---|---|---|---|
| Page: one genre's 100 longest tracks | 12.7 µs | 14.9 µs | 1.2× slower |
| Top 50: top 50 tracks by length | 6.59 µs | 8.32 µs | 1.3× slower |
| Nested: 10 albums, 10 newest tracks each | 22.8 µs | 19.9 µs | 1.1× faster |
| Full join: all albums with all their tracks | 10 ms | 9.59 ms | about even |
| EXISTS: 100 newest albums with a track in a genre | 41 µs | 68 µs | 1.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.
| Query | SQLite re-run | Rindle update | Rindle vs. SQLite re-run |
|---|---|---|---|
| Top 50: top 50 tracks by length | 9.02 µs | 1.93 µs | 4.7× faster |
| Nested: 10 albums, 10 newest tracks each | 20.3 µs | 1.94 µs | 10× faster |
| EXISTS: 100 newest albums with a track in a genre | 42.5 µs | 1.9 µs | 22× faster |
| Page: one genre's 100 longest tracks | 14.8 µs | 1.91 µs | 7.7× faster |
| Full join: all albums with all their tracks | 10.1 ms | 2.46 µs | 4,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.
| Query | CPU/s SQLite | CPU/s Rindle | Rindle | Staleness SQLite | Staleness Rindle | Rindle |
|---|---|---|---|---|---|---|
| top 50 tracks by length | 1.8 µs | 0.032 µs | 56× cheaper | 2.5 s | 1.93 µs | 1,300,000× fresher |
| one genre's 100 longest tracks | 2.96 µs | 0.032 µs | 93× cheaper | 2.5 s | 1.91 µs | 1,300,000× fresher |
| 10 albums, 10 newest tracks each | 4.06 µs | 0.032 µs | 130× cheaper | 2.5 s | 1.94 µs | 1,300,000× fresher |
| 100 newest albums with a track in a genre | 8.5 µs | 0.032 µs | 270× cheaper | 2.5 s | 1.9 µs | 1,300,000× fresher |
| all albums with all their tracks | 2.02 ms | 0.041 µs | 49,000× cheaper | 2.51 s | 2.46 µs | 1,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.
(…, AlbumId = 7,
GenreId = 2 /* Jazz */,
MediaTypeId = 1 /* audio */)
Track WHERE GenreId = 1 /* Rock */ …skippedTrack WHERE AlbumId = 7 …updatedTrack WHERE MediaTypeId = 3 /* video */ …skippedThis 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 queries | SQLite, re-run all | Rindle, per write | Rindle vs. SQLite re-run |
|---|---|---|---|
| 1 | 14.3 µs | 1.94 µs | 7.4× faster |
| 8 | 62.1 µs | 1.97 µs | 31× faster |
| 64 | 678 µs | 2.36 µs | 290× faster |
| 512 | 5.67 ms | 4.48 µs | 1,300× faster |
| 1,024 | 11.4 ms | 6.92 µs | 1,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 */ …Album WHERE ArtistId = ?20 newest albums, 5 newest tracks each
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 watching | SQLite, re-run all | Rindle, per write | Rindle vs. SQLite re-run |
|---|---|---|---|
| 100 | 1.27 ms | 4.96 µs | 260× faster |
| 1,000 | 12.3 ms | 5.28 µs | 2,300× faster |
| 5,000 | 61.6 ms | 5.5 µs | 11,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 is the most writes per second Rindle can sustain with one core running queries.
Qis the number of live queries.Sis the fraction of those queries a typical write reaches. Not every write reaches every query.Q · Sis 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):
1query: ~75,000writes/s6queries: ~75,00064queries: ~7,800500queries: ~1,00050,000queries: ~10
If a write has a 1% chance of touching any one query (S = 0.01):
100queries (Q · S = 1): ~75,000writes/s600queries (Q · S = 6): ~75,00050,000queries (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.
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
| Shape | Offered | Commits/s | Delivered/s | Sustain | Lag p50 | Lag p99 | Shed · peak late | Verdict |
|---|---|---|---|---|---|---|---|---|
| 1 query sees allQ×S = 1 | 60k | 60k | 59.9k | 100% | 625µs | 2.63ms | 0 · 0ms | held |
| 100k | 100k | 99.8k | 100% | 539µs | 2.34ms | 0 · 0ms | held | |
| 180k | 180k | 180k | 100% | 406µs | 2.02ms | 0 · 0ms | held | |
| 250k | 250k | 250k | 100% | 456µs | 8.59ms | 0 · 0ms | held | |
| 320k | 320k | 320k | 100% | 672µs | 10.1ms | 0 · 0ms | held | |
| 400k | 386k | 386k | 100% | 6.32ms | 10.6ms | 0 · 0ms | held | |
| 64 queries see allQ×S = 64 | 10k | 10k | 10k | 100% | 2.03ms | 13.7ms | 0 · 0ms | held |
| 25k | 25k | 25k | 100% | 2.19ms | 80.2ms | 0 · 0ms | held‡ | |
| 45k | 45k | 45k | 100% | 2.98ms | 92.1ms | 0 · 1ms | held‡ | |
| 52k | 52k | 51.8k | 100% | 3.9ms | 231ms | 0 · 23ms | held‡ | |
| 58k | 58k | 57.2k | 99% | 5.72ms | 243ms | 0 · 127ms | held‡ | |
| 65k | 65k | 60.6k | 93% | 191ms | 661ms | 0 · 634ms | behind | |
| 90k | 90k | 60.6k | 67% | 1.46s | 3.2s | 0 · 2s | behind | |
| 256 queries see allQ×S = 256 | 2k | 2.01k | 2.01k | 100% | 6.24ms | 25.1ms | 0 · 0ms | held |
| 5k | 5.01k | 5k | 100% | 6.15ms | 33.1ms | 0 · 0ms | held | |
| 10k | 10k | 9.99k | 100% | 8.25ms | 91.9ms | 0 · 0ms | held | |
| 12k | 12k | 11.8k | 98% | 9.78ms | 238ms | 0 · 209ms | held‡ | |
| 14k | 14k | 13.6k | 97% | 13.7ms | 287ms | 0 · 269ms | behind‡ | |
| 16k | 16k | 14.7k | 92% | 320ms | 911ms | 0 · 846ms | behind | |
| 25k | 25k | 12.8k | 51% | 4.29s | 9.39s | 0 · 4.37s | behind | |
| 1,024 queries see allQ×S = 1,024 | 500 | 503 | 502 | 100% | 25.7ms | 85.9ms | 0 · 1ms | held |
| 1.5k | 1.51k | 1.5k | 100% | 24.9ms | 103ms | 0 · 0ms | held | |
| 2.2k | 2.21k | 2.2k | 100% | 30.4ms | 134ms | 0 · 0ms | held | |
| 3k | 3.01k | 2.49k | 83% | 944ms | 2.03s | 0 · 1.53s | behind | |
| 4k | 4.01k | 2.38k | 59% | 3.1s | 6.74s | 0 · 3.98s | behind | |
| 10k | 10k | 2.38k | 24% | 15.7s | 31.7s | 224 · 7.43s | behind | |
| 1,000 own listsQ×S = 1 | 20k | 20k | 20k | 100% | 1.11ms | 2.32ms | 0 · 0ms | held |
| 45k | 45k | 45k | 100% | 997µs | 2.74ms | 0 · 0ms | held | |
| 80k | 80k | 80k | 100% | 1.51ms | 6.15ms | 0 · 0ms | held | |
| 100k | 100k | 100k | 100% | 1.67ms | 22.5ms | 0 · 0ms | held | |
| 120k | 120k | 120k | 100% | 2.2ms | 27.9ms | 0 · 0ms | held | |
| 140k | 140k | 140k | 100% | 14.6ms | 98.7ms | 0 · 7ms | held | |
| 170k | 140k | 139k | 99% | 27.4ms | 130ms | 0 · 56ms | write-bound | |
| 100 own pagesQ×S = 1 | 10k | 10k | 10k | 100% | 1.8ms | 4.13ms | 0 · 0ms | held |
| 30k | 30k | 30k | 100% | 1.11ms | 3.03ms | 0 · 3ms | held | |
| 55k | 55k | 55k | 100% | 1.49ms | 5.14ms | 0 · 0ms | held | |
| 75k | 75k | 75k | 100% | 2.34ms | 14.7ms | 0 · 0ms | held | |
| 80k | 78.9k | 78.9k | 100% | 8.42ms | 40.4ms | 0 · 0ms | held | |
| 82k | 80.2k | 80.2k | 100% | 28.6ms | 47.6ms | 0 · 0ms | held | |
| 90k | 84k | 83.9k | 100% | 29ms | 92.6ms | 0 · 0ms | write-bound | |
| 130k | 86k | 86k | 100% | 28.1ms | 55.5ms | 0 · 0ms | write-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 queries | Rindle memory | Per query | Per maintained row |
|---|---|---|---|
| 100 | 180 KB | 1.8 KB | 220 B |
| 1,000 | 1.52 MB | 1.52 KB | 204 B |
| 5,000 | 7.47 MB | 1.49 KB | 204 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).