CouchDB 2.0 has a _bulk_get endpoint (see https://issues.apache.org/jira/browse/COUCHDB-2310) that was merged from rcouch. I don't know whether anybody has tested it for CBL compatibility but it works with PouchDB and Cloudant Sync. Cloudant has this deployed for internal testing and it will likely land on public clusters within weeks. If you need a Cloudant account moved to a cluster that supports it now (for testing only), let me know privately and I'll see what I can do.
Will 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/d3ff599c-eae3-4761-9b81-4b755946263c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
