We are using Couchbase Lite in a mobile app, so users can use it online or offline (and synchronize later).
However, this create possibility of conflicts, so we have to implement a Merge logic.
We were thinking something like:
Lest say I have two devices: X and Y, and both of them have the version 3 of a document.
Then, they both go offline and edit the document creating their on versions: 4_x and 4_y.
Then, they both go online and we get the conflict, and we have to program the logic for the merge.
Does the Couchbase Lite that i have in the device, keep a history of the parent of the conflicting versions? (in this case, version 3)
IT would be very beneficial for us to have available the parent of a conflicting version, so we can know what changed from version 3 to version 4 and then decide what to do.
Or… is there a better way to implement the merge? (that would be great…)