serverpod-offline-sync/packages/serverpod_offline_sync/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tizian 「ティツィアーン」 f062725a16
fix: Rebuild projections once per context after the registry changed
Every ephemeral OfflineSyncDatabase shares one context but initializes a
recorder of its own, and each rebuilt the projections of every space
when the context's first initialize had changed the registry: on every
session and every merge, until the process stopped (upstream #150). A
new device, or one whose app changed its synced tables, spent about 3 s
of every inbound merge on it with a library of 8,000 cards, a server
after such a migration as much on every request.

The context now runs the rebuild once (Once): wrappers initializing
while it runs await the same run, later ones skip it, and a failed run
is tried again by the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 19:12:03 +02:00
..
crdt refactor!: Rename sync APIs and ownership spaces (#128) 2026-09-14 13:39:07 -03:00
database perf: Compare byte values directly and parse only UUID-shaped values 2026-10-12 13:29:50 +02:00
hlc test: Add a DST and tests reproducing found failures (#110) 2026-09-04 13:09:20 -03:00
utils fix: Rebuild projections once per context after the registry changed 2026-10-17 19:12:03 +02:00