> On Jan 27, 2015, at 1:58 PM, Brett Harrison > <[email protected]> wrote: > > In the sync gateway data feed, when the first number of the revision (ex. > 1-1dec8991883482368060e6bf2f21a783) is 1 does that mean that this is the > first version? So if I would like to trigger a process only when the first > version is created I can look for the 1?
Yes, the number before the "-" is the generation count. It isn't exactly the first version … it's possible (but unlikely) to have a conflict where two clients create a new document (with different contents) and push it to the server. You'd then have two revisions starting with "1-". Basically they'd be contending to be the first revision, and someone would have to merge them. —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/4A89C6FA-0EAF-4D2B-81F3-0EBF5C5C3EA8%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
