Traun, I actually would have one more question if you don't mind. Looking at your explanation it makes total sense but what is the difference compared to trying to create a new document with the same document ID?
Based on your example I understand it flows like this: 1) iPad creates user_profile document offline at login and then syncs to database 2) iPhone creates user_profile document offline at login and then syncs to database as well. If I understand you correctly both documents get created but the version with the higher revision wins, correct? However lets assume a slightly different scenario: 1) iPad creates user_profile document offline at login and then syncs to database 2) iPhone is online and synced. When I try to create a NEW document with the ID (same step as creating a user profile offline) I get an error that the document ID already exists, correct? My question would be whether it is save to assume that I could technically create two documents with the same ID on two different offline devices and Sync Gateway will try to clean up the mess? If so how do I protect my data logic from running into that problem? Meaning there is a reason that I usually cannot create the same document ID twice but in this scenario it bypasses that check. Thanks Christoph -- 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/56a102bb-7cdd-4e18-9a66-c6116cb80692%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
