couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Oli <oliver.oli+0...@gmail.com>
Subject Re: retrieving particular documents in one shot
Date Fri, 08 Jan 2010 16:59:01 GMT
Why POST and not GET?

2010/1/6 Alex Koshelev <daevaorn@gmail.com>:
> Hi, Michal!
>
> If you want to get set of keys from view[1] or database[2] you can make POST
> request with body consits of needed keys -- for your example:
>
>  {'keys': ['a', 'g', 't']}
>
>
> [1]: http://wiki.apache.org/couchdb/HTTP_view_API
> [2]: http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API
> ---
> Alex Koshelev
>
>
> On Wed, Jan 6, 2010 at 10:37 AM, Michal Nowikowski <godfryd@gmail.com>wrote:
>
>> Hello,
>>
>> I digging in manuals but cannot find the answer. Is it possible to
>> retrieve in one view query a list of particular documents.
>> I'd like to pass a list of keys and retrieve contents of these
>> documents. I cannot use range of keys using startkey and endkey.
>> I need to indicate specific documents, something like that:
>>    key='a'&key='g'&key='t'
>> while in db there are documents with keys from 'a' to 'z'.
>> I need such approach because the documents are too huge to retrieve
>> them all at once and I also do not want to retrieve them one by one.
>> Is it possible in CouchDB?
>>
>> Thanks in advance
>> Michał Nowikowski
>>
>

Mime
View raw message