fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
219 stars 16 forks source link

zoom to CRDT clock #38

Open jchris opened 9 months ago

jchris commented 9 months ago

we should have an official api for zooming to a clock point.

some considerations -- writes correspond to a single head, but reads to a multi head. you should be able to zoom to single or multi head.

defaults and documentation should make it clear that single head corresponds to a snapshot at time of write, but multi head introduces potential merges from non-causal actors.

jchris commented 9 months ago

now that #21 is closed we can read from _changes for the corresponding write clock crdt

jchris commented 8 months ago

loading from a snapshot as a hack https://github.com/fireproof-storage/dashboard/blob/main/src/lib/db.ts#L30