logo       

Re: [PATCH] Views: Multiple keys: msg#00116

db.couchdb.devel

Subject: Re: [PATCH] Views: Multiple keys

There was an idea floated on another thread to make _bulk_docs support
a post body of something like:

{
"put": [ { "_id": "doc1", "foo": "bar" } ],
"post": [ { "baz": "foo" } ],
"delete": [ {"_id": "doc2" } ],
"get": [ { "_id": "doc3" }, { "_id": "doc4"} ]
}

I looked briefly into this, but the code that runs bulk docs is a lot
deeper than I thought it was. There's quite a bit of stuff related to
replication and consistency.

Paul

On Wed, Jul 23, 2008 at 3:42 PM, Chris Anderson
<jchris-ZB/pdL+efyc@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Jul 23, 2008 at 1:59 PM, Paul Bonser
> <misterpib-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
>> Does anyone have any thoughts on allowing multi-docid requests?
>
> I'm guessing they should live at a different endpoint url - as they
> aren't tied to a particular view. Maybe _load_bulk_docs or
> something... too bad about GET being infeasible due to URL length, it
> would make most sense to have a GET from _bulk_docs, but POST there is
> already in use.
>
>
> --
> Chris Anderson
> http://jchris.mfdz.com
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise