Snapshots - Versioning

@dmonad Kevin Jahns
Wed, 03 Sep 2025 16:08:25 +0000

You could restore the snapshot and replace the new values with the old values.

Also, I’ve read just now that having a single Y.map inside the document is a bad idea?

I mentioned something like this, it mainly applies to “graph tools” - i.e. apps that render a lot of nodes and edges. But it really depends on your application. Do some performance testing and try to create one huge document. The bottleneck is memory usage, because Yjs holds everything in-memory - even some meta-information of deleted content, which is required for conflict-resolution.