fireproof icon indicating copy to clipboard operation
fireproof copied to clipboard

zoom to CRDT clock

Open jchris opened this issue 1 year ago • 2 comments

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 avatar Oct 06 '23 13:10 jchris

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

jchris avatar Oct 06 '23 13:10 jchris

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

jchris avatar Oct 11 '23 18:10 jchris