Search code examples
replicationlivepouchdb

Pouchdb - tweaking live replication


Using live replication, there is a GET request every 25 secs aprox asking for changes.

is there a way to set this interval to a larger interval?

This could be useful considering some hosting services charge per transaction and they consider options as heavy (cloudant).


Solution

  • That's odd; replication should be done using long-polling, i.e. one long request.

    Unless there are documents to replicate from the server to the client, in which case, yeah, there will be a GET for each one.

    Whatever may be causing this, you can use pouchdb-dump and pouchdb-load to do initial replication in a single request.