On Feb 10, 2014, at 4:02 PM, Alan McKean <[email protected]<mailto:[email protected]>> wrote:
My current app, using Core Data, tracks the last sequence number and requests changes on each launch. I don't see a changes request in the API for Couchbase Lite. Is there a way to request changes since a sequence number? The native API doesn't have a direct equivalent of the _changes feed from the REST API. In the latest revisions on the master branch (but not in beta 2) you can create your own equivalent by defining a view whose key is the sequence number of the document; the map block would look like emit(doc[@"_local_seq"], nil); Then you can query the view with the startKey being one more than the last sequence you saw. This support didn't make it into beta 2 (the "_local_seq" key isn't available in the map function) but will be in the GA release. --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/3C9601E8-BBFF-4E2B-B6BC-D4C0634C653F%40couchbase.com. For more options, visit https://groups.google.com/groups/opt_out.
