incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niket Patel <nex...@me.com>
Subject Re: Bulk Delete
Date Sat, 04 Oct 2008 21:26:32 GMT
To be clear, I can see following example from wiki (modified) http://wiki.apache.org/couchdb/HttpDocumentApi

{
     "docs": [{
         "_id": "0",
         "_rev": "3682408536",
         _deleted = true
     },
     {
         "_id": "1",
         "_rev": "3206753266",
         "integer": 2,
         "string": "2"
     }]
}
if I send _bulk_docs with above POST request.
next replication will replicate doc._id == 1 but not doc._id == 0?
So, on all other nodes I need to send _bulk_docs request for doc._id  
== 0

And,
_deleted = true looks bit weird. why its not _deleted: true or  
"_deleted": true ?

On Oct 5, 2008, at 2:40 AM, Ayende Rahien wrote:

> It remove a document from the repository, but it doesn't record this  
> fact.
> As far as CDB is concerned, the document never exists.
> The purge doesn't get replicated.


Mime
View raw message