I have this structure
Couchbase server <---> couch sync gateway <---> pouchdb
and I have 4 databases every local database is sync to remote and every remote db is sync to local, syncing is live. When I load the page syncing starts, but every second I have a lot of errors in console log
these errors use a lot of memory (my chrome tab uses about 800 Mb of memory after 20 minutes) How can i prevent this? The problem is that in my javascript my config is
var syncOptions = {
live: true,
retry: true
};
var localDB = new PouchDB("building");
var remoteDB = new PouchDB("http://xxx.azure.com:4984/building");
localDB.sync(remoteDB, syncOptions);
If I set "retry" value to false there are no problems, but live sync doesn't work, if I set "retry" value to true my page generates about 4 error every second (because I'm syncing 4 databases) What can I do? Thanks
EDIT
I'm using pouchdb-5.4.1.js