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 Mon, 06 Oct 2008 09:22:21 GMT

On Oct 5, 2008, at 3:02 AM, Paul Davis wrote:

> On Sat, Oct 4, 2008 at 5:26 PM, Niket Patel <nexneo@me.com> wrote:
>> 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 ?
>>
>
> You're right, that's not valid json, it'd be:
>
> {
>        "_id": "0",
>        "_rev": "3682408536",
>        "_deleted": true
> }


I did change into following wiki page as per above discussion.
It should be good if reviewed.

http://wiki.apache.org/couchdb/HttpDocumentApi?action=diff

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message