From 4f872dfddea0b219491de9a809de78d40c7fdd4a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 2 Sep 2015 07:46:03 -0400 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 93555b3..fcc268d 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,12 @@ One simple way to get around this error is to limit the globalAgent maxSockets, require('http').globalAgent.maxSockets = 25; ``` +### Trying to speed up PouchDB replication? + +If you are using this library in the browser, then it's not going to speed up replication. The whole point is to minify the number of HTTP requests by collapsing replication into a stream, and then sending one big chunk down the wire to the client. If you use it on the client side, then it will still make many small requests to the server, which is slow. + +What you probably want is to use this library server-side, in a Node.js process. For a good example, see the Express wrapper: [express-pouchdb-replication-stream](https://github.com/conor-mac-aoidh/express-pouchdb-replication-stream). + Building ---- npm install