incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Davis" <paul.joseph.da...@gmail.com>
Subject Re: [PATCH] Views: Multiple keys
Date Wed, 23 Jul 2008 19:49:22 GMT
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@grabb.it> wrote:
> On Wed, Jul 23, 2008 at 1:59 PM, Paul Bonser <misterpib@gmail.com> 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
>

Mime
View raw message