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
Could this go upstream into PouchDB/CouchDB? #34
Comments
@nickcmaynard I am also interested in a way to shorten our initial replication from CouchDB to in browser PouchDB. Can you please share the way you set it up? Thanks |
@ngbinh You need an intermediary NodeJS server to run this package (we use exporess-pouchdb-replication-stream as a wrapper). Then run pouchdb-load in your browser. The documentation pretty much covers it. |
This library is kind of a testing ground for a potential new CouchDB API. The code itself wouldn't be used (CouchDB is Erlang; this is JavaScript), but it could definitely influence the design. @janl has been particularly interested in this. |
Theoretically, replicator may use such algorithm if it was asked to create target during replication or target docs count is zero. However, this also assumes that there will be no concurrent replication processes, so this feature as an option could be good. |
Closing, currently no plans to integrate into CouchDB |
We're using this to shorten our initial replication times from remote CouchDB -> in-browser PouchDB (with pouchdb-load) from ~120s to 2s. It's such a massive speedup that I can't help thinking that this component (which I see as server-side) could be in CouchDB/PouchDB trunk.
I guess the answer is philosophical, and the question might be naïve, but could this be pushed upstream?
The text was updated successfully, but these errors were encountered: