Search code examples
couchdbpouchdb

Why is the time stamp not used for conflict resolution?


The docs state that the "winner" is chosen in an arbitrary and consistent fashion. Why is the "later" revision not always chosen? I am sure that the timestamp is present in the payload.


Solution

  • There are a couple add-ons that implement this. Unfortunately not well advertised.

    https://github.com/automerge/automerge

    https://github.com/redgeoff/delta-pouch

    This issue has some discussion:

    https://github.com/pouchdb/pouchdb/issues/8163

    Looks like pouchdb folks do not read SO.