All results
Loading each time slice once ended 105 rows wrong and the change feed 0, over 61 reads of a live public feed.
Each design at the end
Every design started from the same full load and then ran once after each read of the source. A row is wrong when it differs from the source at that moment: a stale value, an event missing, an event kept under an id the source replaced, or an event the source deleted.
| Design | Wrong | Stale value | Missing | Old id | Of which doubled | Deleted, kept | Vanished | MB read | Share of full reload |
|---|---|---|---|---|---|---|---|---|---|
| Full reload | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 436.87 | 100.00% |
| Time partitions | 105 | 48 | 53 | 4 | 0 | 0 | 0 | 0.04 | 0.01% |
| Incremental by updated time | 4 | 0 | 0 | 4 | 4 | 0 | 0 | 0.14 | 0.03% |
| Change feed | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1.03 | 0.24% |
| Change feed, no lookback | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0.03% |
| Change feed, 4-minute lookback | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 0.06% |
| Change feed, 2-hour lookback | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3.14 | 0.72% |
Time partitions misses by design: it waits 30 minutes for late events and never looks back at a partition it has loaded, so every revision and deletion of an older event stays wrong. 53 of its 105 wrong rows are missing events. At the last read no live event had its origin inside the 30-minute wait, so all of them reached the source, or moved to their origin time, after their slice had closed.
Rows wrong after each read, no outage.
Time partitionsIncremental by updated timeChange feedFull reload
What the source did
Across 61 reads, 4 hours apart from first to last, the window held about 10,196 live events. It changed a little at every read.
| What the source did | Count |
|---|---|
| New events | 83 |
| Revised (a tracked field changed) | 49 |
| Re-published under a new id | 4 |
| Deleted | 0 |
| New, with an update time older than the newest already seen | 0 |
| Records failing the row contract (last read) | 29 |
The source deleted no event while it was recorded. Its record for the whole 30.9-day window still lists 175 deleted events. For 173 of them the last update came at least 4 minutes after their origin, for 80 a day or more after.
Revisions run long too. On the last read, 8,530 of the 10,196 live events had last been updated more than 30 minutes after they happened, 5,289 more than a day after and 2,165 more than a week after. So updates land long after an event happens; at the last read the slice table had missed 48 corrections. 810 live events carry more than one id, the trail of a re-key.
Which checks fired
Six checks ran after every load. Counted over the four designs and every read after the first. A good check fires on wrong tables and stays quiet on right ones.
| Check | Fired on a wrong table | Fired on a right table | Fired on a doubled event |
|---|---|---|---|
| One row per id | 0 of 115 | 0 of 125 | 0 of 55 |
| Row contract | 0 of 115 | 0 of 125 | 0 of 55 |
| No deleted status | 0 of 115 | 0 of 125 | 0 of 55 |
| Old id (as declared) | 115 of 115 | 125 of 125 | 55 of 55 |
| Old id, the source's own pairs allowed, built for the miss above | 55 of 115 | 0 of 125 | 55 of 55 |
| Row count against the source | 114 of 115 | 0 of 125 | 55 of 55 |
| Newest update within 30 minutes | 17 of 115 | 0 of 125 | 0 of 55 |
The old-id check as declared fires on every table, the full reload included, because the source itself lists 1 live event among another's ids. Allowing the source's own pairs, as a variant does, quiets it on right tables.
How far back the change feed reads
The change feed reads rows updated since its last run minus a lookback, to catch rows that the service makes visible late. Every lookback ended the same. Four lookbacks, same reads:
| Lookback | Wrong at the end | Missing | MB read |
|---|---|---|---|
| Change feed, no lookback | 0 | 0 | 0.14 |
| Change feed, 4-minute lookback | 0 | 0 | 0.28 |
| Change feed, 30-minute lookback (the design) | 0 | 0 | 1.03 |
| Change feed, 2-hour lookback | 0 | 0 | 3.14 |
Retries
The retry policy allows three retries with exponential backoff. 33 of 240 runs recovered by a retry. None of the 240 failed all four attempts. Failures are drawn separately for each design. Across all 420 runs, lookback variants included, two failed every attempt and left their tables 5 and 1 rows wrong at that read only, right again at the next. A replay with no planted failures gave the slice table's and the change feed's wrong rows read for read.
| Design | Runs | Recovered by a retry | Failed after four attempts |
|---|---|---|---|
| Full reload | 60 | 11 | 0 |
| Time partitions | 60 | 8 | 0 |
| Incremental by updated time | 60 | 5 | 0 |
| Change feed | 60 | 9 | 0 |
Schema drift: GitHub push events, 2012 to 2025
The second source is GH Archive, an hourly record of public GitHub events. 10,000 push events, 2,000 from each of five hours between 2012 and 2025, change shape twice. Before 2015 they carry no event id and list commits under another name. In 2025 a new field appears. Three loaders, scored on the commit count each loads against the count the event itself states:
| Loader | Right | Rejected | Loaded wrong or empty |
|---|---|---|---|
| Strict to the newest shape | 5946 | 4000 | 54 |
| Lenient, missing fields as null | 5946 | 0 | 4054 |
| Versioned contract | 10000 | 0 | 0 |
The versioned contract is right on all of them because it reads the stated count, the same field it is scored on. The finding is the other two rows. A lenient loader fails nothing and loads 4,000 empty counts, and both of the others undercount 54 large pushes, because the commit list stops at 20.
A slice load that re-reads its last day
Time partitions that, on every run, also delete and re-load every slice of the day before the newly closed one (as declared). It ran over the same 61 reads in a replay with no planted read failures, which first reproduced plain time partitions' wrong rows read for read and the change feed's zero, as controls (every count).
It ended 86 rows wrong: 37 stale values, 46 missing and 3 under an old id, all of them among the 105 the slice table ends wrong. It read 1.99% of a full reload's data per run after the first load, 8.4 times the change feed's. A one-day window cannot reach an earthquake that first appears later than that, and 46 of the 79 new ones (the 83 new events less the 4 re-keys) first appeared more than a day after they happened (median 2.3 days), while 5,289 of 10,196 earthquakes were last updated more than a day after they happened.
- Missed. Predicted to end with at least 1 and fewer than 53 wrong rows. Observed: 86.
- Held. Predicted to read between 5 and 30 times the change feed's data per run after the first load. Observed: 8.4 times.
By the rule declared with it, 1 or more wrong rows leaves the call as it was.
Re-reading 3 and 7 days
The same design with a window of 3 days and of 7 days (as declared). They ran in the same kind of replay, which first reproduced plain time partitions, the change feed and the 1-day re-read exactly, as controls (every count).
- 3 days. 53 rows wrong: 24 stale values, 26 missing and 3 under an old id. It read 30.1 times the change feed's data per run after the first load.
- 7 days. 21 rows wrong: 11 stale values, 8 missing and 2 under an old id. It read 77.3 times the change feed's data per run after the first load.
- Held. Predicted the 3-day re-read to end with at least 1 wrong row. Observed: 53 wrong rows.
- Held. Predicted the 7-day re-read to end with at least 1 wrong row. Observed: 21 wrong rows.
- Held. Predicted the 7-day re-read to read between 20 and 120 times the change feed's data per run after the first load. Observed: 77.3 times.
By the rule declared with them, the call stands.
A second recording
The same recorder, query and window, reading every 4 minutes for a fixed 6 hours and 15 minutes (as declared). It made 94 reads over 6.2 hours (the second recording). The four designs ran over it from a fresh first load in a replay with no planted read failures. Over the first recording, the same replay reproduced every design's wrong rows read for read and its data read, as controls (every count).
The source deleted no events that had been live at an earlier read and re-published seven under a new id. 10,872 events were live at the last read. After the first load the full reload read 749.7 times the change feed's data.
Incremental by updated time ended 7 wrong: it counted the 7 re-published earthquakes twice. Time partitions ended 46 wrong: 11 stale values, 28 missing and 7 under an old id. The change feed and the full reload ended with none.
| Design | Rows wrong at the last read | Deleted events kept | Data read after the first load, kB |
|---|---|---|---|
| Time partitions | 46 | 0 | 48.4 |
| Change feed | 0 | 0 | 964.4 |
| Incremental by updated time | 7 | 0 | 139.4 |
| Full reload | 0 | 0 | 723,014.0 |
- Missed. Predicted at least one deletion of an event that was live at an earlier read. Observed: 0.
- Not tested. Predicted, if so, that incremental by updated time and time partitions each keep at least 1 deleted event, and the change feed and the full reload none. Observed: 0, 0, 0 and 0, in that order.
- Held. Predicted the change feed to end with 0 wrong rows. Observed: 0.
By the rule declared with it, the call stands.
What went wrong or was missed
- The recording ran for four hours, 61 reads. The next read failed when the network dropped, so the record ends there.
- The session was short. In 4 hours the source deleted 0 events and re-keyed 4, so the cursor designs' errors rest on a handful of rows.
- The replay serves each recorded row at once, so it cannot show a row the service makes visible late, and the 30-minute lookback is a cautious default.
- The deletion record does not show when each deleted event first appeared, and a deleted event's last update may be the deletion itself, so it cannot say how many a polling sync loaded before they were deleted.
- An update is not always a change to a tracked field, so the counts of late updates are an upper bound on late changes.
- The row count cannot fire on a right table, whose count matches the source's by definition, and it misses stale values by nature: a revised magnitude leaves the count unchanged.
- The old-id variant needs the full source state and uses the same alias list as the scoring, so it ran only beside the replay, not in the pipeline, and its hits on doubled events are true by construction.
- In the replay, the row contract quarantined 29 records the source serves with no origin time, magnitude or status. Every design and the truth leave them out alike. Live, no run quarantined more than one.
- The prediction declared to lead expected incremental by updated time to end with five or more wrong rows. It ended with 4, so that prediction missed. The time-slice comparison was chosen after the results, at 44 of the 61 reads, when that design stood at 3.
- The read failures are planted at a seeded rate, one first attempt in ten and three in ten of the retries after a failure, and so is the outage; the earthquake data is real.
- Added after the results: the count in the deletion record, the old-id variant that allows the source's own pairs, the slice loads that re-read their last 1, 3 and 7 days, and the second recording. The re-reads and the second recording were each declared before they ran, in the second, third and fourth change records.
- The rule declared with the second recording kept a replay of 30 days of version history as the next test of deletions. That replay serves each version at its update time, which the change feed always reads, so it cannot make the change feed miss. A week of live runs beside a full reload can, and has not run.
- In 12 spot checks, re-reading the live service a few minutes after a recorded read returned 1,072 of the 1,081 rows the replay served, 1,068 of them unchanged. The rest were gone from the live answer minutes later, and the live answers held a few rows the recorded read did not.