3 ms·
I think CouchDB/PouchDB do this similarly, the winner is deterministic though?
by dgb23 5y ago
I think CouchDB/PouchDB do this similarly, the winner is deterministic though?
- samwillis 5y agoCouchDB and PouchDB have no idea how to merge a conflict, if two copies are edited prior to syncing, one version it marked as the 'winner' and the other as a conflict version. As the developer you can then either chose to dispose of conflicts or have your own way of merging them. This is actually a perfect use case for CRDTs such as Automerge and Yjs, I actually built a proof of concept combining Yjs with PouchDB to handle the conflicting edits: https://discuss.yjs.dev/t/distributed-offline-editing-with-couch-pouchdb/340 https://discuss.yjs.dev/t/distributed-offline-editing-with-c...