On Sep 10, 2014, at 3:27 PM, Jens Alfke <[email protected]<mailto:[email protected]>> wrote:
* Do you need just the total number of un-pushed docs, or the individual doc IDs? Individual doc IDs, or... * Are you OK with a one-shot call to retrieve this, or do you need change notifications (as with LiveQuery)? In each of these, the second alternative (doc IDs, change notifications) will be harder to implement efficiently. Perhaps just a simple sync event handler/callback, added to Document, the is invoked when the item has been pushed. This would be enough to let the UI update from "unsynced" to "synced" state. The remote URL might be passed to the callback, letting the application developer decide if a given endpoint should "count" as the official sync endpoint if multiple replication endpoints a being use for the same device. In peer to peer applications, you could even list which peers the document has been directly synced to, or if sync has only happened locally but not a sync gateway endpoint, for example. This could be done at the end of UploadBulkDocs, for example. -- 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/FD6A7030-3C30-407F-8FEE-81F2A9825664%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
