i new couchdb , trying pull data couchdb incrementally. sequence number source me. added
"options": { "local_seq": true },
in design document. proper usage of 'options' field in design document? want see local_seq field result.
thanks
according documentation, need define option on design document. once it's defined, can use _local_sec document property. have defined in mapping function, emit keys value of _local_sec.
have try :
{ "_id": "_design/global", "language": "javascript", "views": { "byage": { "map": "function(doc){if(doc.age)emit(doc._id,doc._local_sec);}" } }, "options": { "local_seq": true } }
Comments
Post a Comment