> On Apr 17, 2015, at 6:05 PM, Julio Albuquerque <[email protected]> > wrote: > > It could not be the sequence? > Its retrieve the sequence number of conflicts / reviews? > Thus I assume that the major sequence was the last. > It is possible?
Sequence numbers are local to each database. They just reflect the order in which the doc was added to that db. User A and user B won’t have the same sequence number for the same revision, and they can’t see each other’s sequence numbers anyway. > So I have the same document but with two different information type. > How to know which version is the "true”? Both of them are “true” in some sense. Just because user A updated the document two seconds before user B doesn’t mean that user A’s update is better than user B’s. Especially if user A was offline on the subway at the time, so her update didn’t get pushed to the server for another half hour, by which time a thousand people had already received B’s update. At that point, overwriting B’s changes with A’s is totally the wrong thing to do! Stop thinking about time and think about the content of the documents. You’ll probably need to look at individual properties and combine the values together — the details are very specific to your application’s data schema, which is why CBL doesn’t try to merge for you. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/79A81C00-6AF2-4ABC-9A4C-5FB9FF516FA4%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
