pouchdb replicate from couchdb : very slow-open source projects pouchdb/pouchdb

Tom Grant

I assume you’re using the PouchDB.replicate function

In that case, try modifying the batch_size option:

PouchDB.replicate('mydb', 'http://localhost:5984/mydb', {batch_size: large_val})

where large_val is higher than the default of 100. The higher the value, the faster the replication should go, but the more memory it will use, so be careful.

See the API reference

Edit: Also note the option batches_limit which defaults to 10. This is how many requests may run in parallel at any time, so the number of documents in memory equals batch_size * batches_limit.