couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Replication" by JanLehnardt
Date Sun, 11 Oct 2009 08:02:29 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Replication" page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/Replication?action=diff&rev1=9&rev2=10

  
  {"source":"example-database","target":"http://example.org/example-database"}
  }}}
- v
+ 
  `source` and `target` can both point at local databases, remote databases and any combination
of these.
  
  If your local CouchDB instance is secured by an admin account, you need to use the full
URL format
@@ -31, +31 @@

  {"source":"http://example.org/example-database","target":"http://admin:password@127.0.0.1:5984/example-database"}
  }}}
  
- The target database has to exist and is not implicitly created. The names of the source
and target databases do not have to be the same.
+ The target database has to exist and is not implicitly created. Add `create_target:true`
to the JSON object to create the target database (remote or local) prior to replication. The
names of the source and target databases do not have to be the same.
  
  
  Specifying a local `source` database and a remote `target` database is called ''push replication''
and a remote `source` and local `target` is called ''pull replication''. As of CouchDB 0.9,
pull replication works a lot more efficient and error resilient and it is suggested that you
use pull replication in most cases, especially if your documents are large or you have large
attachments.

Mime
View raw message