Example of CouchDB Replication Document

January 7th, 2012 by admin Leave a reply »

Welcome to my blog about my various adventures in software development. I like many others figured that if you are doing this stuff as a career you might as well write about it every once in a while. In the coming weeks I plan on writing about my discoveries in the CouchDB world as I am investigating its use in an upcoming project at my current job. To begin I have just placed an example of a JSON document to perform replication in your couchdb instance. I will clean this up in the coming weeks.

{
          "_id":"by_clientId",
          "source": "http://localhost:5984/test_couch",
          "target": "http://localhost:5984/test_couch2",
          "continuous": true,
          "create_target": true,
          "filter": "replicateFilter/clientFilter",
          "query_params": {
              "clientId": 1
      }
 }

Advertisement

Leave a Reply