couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayende Rahien" <aye...@ayende.com>
Subject Re: Bulk Delete
Date Sat, 04 Oct 2008 21:28:57 GMT
No, document deletion will be replicated.That is the major difference
between purge and delete.

On Sun, Oct 5, 2008 at 12:26 AM, 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 ?
>
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message