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 "FrequentlyAskedQuestions" by JanLehnardt
Date Fri, 02 May 2008 18:14:16 GMT
Dear Wiki user,

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

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/FrequentlyAskedQuestions

The comment on the change is:
update replication faq

------------------------------------------------------------------------------
  
  Or, where is my AUTO_INCREMENT?! With replication sequences are hard to realize. Sequences
are often used to ensure unique identifiers for each row in a database table. CouchDB generates
unique ids from its own and you can specify your own as well, so you don't really need a sequence
here. If you use a sequence for something else, you might find a way to express in CouchDB
in another way.
  
- == How Do I Configure Replication? ==
+ == How Do I Use Replication? ==
- 
- To replicate a database from the CouchDB Erlang console (try ''ccouchdb -i''), type:
  
  {{{
- couch_rep:replicate("local_database_name_a", "local_database_name_b").
+ POST /_replicate?source=$source_database&target=$target_database
  }}}
  
+ Where $source_database and $target_database can be the names of local database or full URIs
of remote databases. Both databases need to be created before they can be replicated from
or to.
- You can also specify a HTTP URL to a remote database:
- 
- {{{
- couch_rep:replicate(
-     "local_database_name_a"
-     "http://remoteserver:5984/remote_database_name_b/").
- }}}
- 
- Either or both databases can be remote:
- 
- {{{
- couch_rep:replicate(
-     "http://remoteserver:5984/remote_database_name_a/",
-     "http://remoteserver:5984/remote_database_name_b/").
- }}}
  
  == How Fast are CouchDB Views? ==
  

Mime
View raw message