On Feb 1, 2016, at 8:43 PM, Jordan Wood <[email protected]<mailto:[email protected]>> wrote:
Is the "0 in bulk, 81 individually" at all relevant? Is there anything I can do to tune this process? The Couchbase Lite replication protocol doesn’t provide a way to pull documents in bulk, unfortunately. (There is _all_docs, but it doesn’t include the revision history of the docs, so it’s not useful for replication purposes.) This slows down replication, since every doc has to be pulled using a separate GET request. (I’m not sure why this problem wasn’t recognized in CouchDB. My best guess is that it doesn’t show up if you have tons of net bandwidth and CPU, as most servers tend to, so it’s not a painful problem in CouchDB deployments. It is for mobile, though.) We invented a nonstandard _bulk_get operation for Sync Gateway that solves this problem. Couchbase Lite will use it, if it sees (via the Server: response header) that it’s talking to Sync Gateway. It’s been documented<https://github.com/couchbase/sync_gateway/wiki/Bulk-GET> for a while, but I don’t know if CouchDB or Cloudant have implemented it. If they have, we could modify the compatibility check in CBL. —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/69E66AA1-4B37-4967-B888-AC6A181DF0F5%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
