Shawn Coughlin
Shawn Coughlin

Reputation: 11

PouchDB live:true makes initial sync 10 times the size of live:false

I am in the middle of building a PouchDB based app that syncs with Cloudant. Does anyone know why LIVE:TRUE causes 10 times the downloads as LIVE:FALSE ??

When I run:

var sync = PouchDB.sync(cloudantDB, localDB, {live: true})

it causes 999+ resources to download, over 4 MB of stuff

But when I run:

var sync = PouchDB.sync(cloudantDB, localDB, {live: false})

it causes a about 79 resources to download, for a total of about 470 KB

This database only has 4 small docs in it. Any clues would be greatly appreciated.

Upvotes: 1

Views: 122

Answers (1)

Tony O'Hagan
Tony O'Hagan

Reputation: 22738

I would start by running Wireshark to inspect the traffic. If you're using SSL, you can install your private key into Wireshark so it can decrypt the packets.

I'd be interested to know your findings.

Upvotes: -1

Related Questions