When you look at the travel-sample database, you can see that each document has their ID, as a long value. This value is part of the documentID too. for exemple you have the document airline_4, with some keys, one of them is id = 4.
When you add a now airline from a mobile app, how do you choose your id ? If you use your Iphone and your android phone to add a new airline document, how can you obtain the next id, (id=5 in my exemple). And how do you do to know that this ID was reserved on your Iphone app first (for exemple).
Adding the fact that each apps can be used offline, so with sync gateway off, when you start it back after inserting a local document, you will deal with an id collision.
I can invent a solution for exemple in reserving ranges for each mobile apps, so my question is : Is there something provide by couchbase lite 2.0 to do it ?