The _bulk_get end point should be in CouchDB 2.0, and hopefully rolled out to Cloudant soon via the merge of https://github.com/apache/couchdb-chttpd/pull/33 a while back. I'm not 100% certain this is compatible with the sync-gateway version, but I _think_ it is.
I can file bugs once we roll it out into production with the CBL libraries if you want Jens? Mike. On Tuesday, 2 February 2016 06:32:15 UTC, Jens Alfke wrote: > > > On Feb 1, 2016, at 8:43 PM, Jordan Wood <[email protected] <javascript:>> > 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/7418c39f-3ed8-4ad4-8766-2825c15164f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
