Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize checkpointing when using for not read-only replications #14

Open
jacargentina opened this issue Feb 25, 2015 · 5 comments
Open

Comments

@jacargentina
Copy link

I'm using this as a "fast start" for my cordova app.
The thing i would love to make faster is the "replicate.to(...)" step.

As pointed on the using instructions, after doing load(..), it must be passed to normal "replicate.from(...)". As i'm doing a two way replication (not read-only), i need to do "replicate.to(...) AND replicate.from(...)"...

I've found that in that scenario, i must wait a LOT for the upload part. See this:

Dump files: 10 txt files, taking 6.1 MB in size
Time spent on the db.load(...) for those 10 files: 15 secs.
Time spent on the db.replicate.to(...): 1.48 mins.
Time spent on the db.replicate.from(...): 38.41 secs.

So my intent is to make that 1.48 mins. MUCH lower.

@nolanlawson Hope this can be possible?

@nolanlawson
Copy link
Member

Are you using the proxy option? The times for both db.replicate.to() and db.replicate.from() seem much, much too high.

Also, when you say to, I assume you mean local.to(remote)?

A live example would be very helpful to illustrate what's going on here.

@jacargentina
Copy link
Author

Yes to all. I'll try to put a live sample shortly.

@jacargentina
Copy link
Author

@nolanlawson There you have the full example to test locally

https://github.com/jacargentina/pouchdb-load-testing

@CharlesGrimont
Copy link

Hi ! We are trying to use the proxy function and a lot of network request such as _changes are made after the bulk load and first pull replication !

I thought that once imported we would be completly synchronised.
Is this normal ?

Thanks

@bilalswiftsolutions
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants