Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

CouchDB does full replication instead of filtered replication?

$
0
0

I am having a source database name - profile-db. It has multiple documents...

Sample document

{
    "_id": "c24e1b6941dbaa8a1a1b76f233002038",
    "_rev": "4-d4edffe0da02900f3f1013baafc97757",
    "firstname": "Stacy",
    "lastname": "Edghill",
    "type": "female",
    "luckynumber": 9,
    "emp": 1
}

I have design document with filters within database - profile-db.

{
    "_id": "_design/rep_profile",
    "_rev": "3-4f56b9cb99cc818610508aa2f7b9cf36",
    "filters":{
        "rep_by_type": "function(doc, req) { if(doc.type== 'female') { return true; } else { return false; }}"
    }
}

I am using Futon for filtered replication. However, CouchDB is doing full replication instead of filtered replication?

Any pointers helping me to do filter replication would be great.

Thanks


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>