Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 22241 invoked from network); 8 Jan 2010 16:59:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2010 16:59:33 -0000 Received: (qmail 81344 invoked by uid 500); 8 Jan 2010 16:59:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81284 invoked by uid 500); 8 Jan 2010 16:59:31 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 81274 invoked by uid 99); 8 Jan 2010 16:59:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 16:59:31 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.219.216] (HELO mail-ew0-f216.google.com) (209.85.219.216) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 16:59:24 +0000 Received: by ewy8 with SMTP id 8so19449074ewy.35 for ; Fri, 08 Jan 2010 08:59:02 -0800 (PST) MIME-Version: 1.0 Sender: oli@streaps.org Received: by 10.213.96.195 with SMTP id i3mr6321613ebn.97.1262969941874; Fri, 08 Jan 2010 08:59:01 -0800 (PST) In-Reply-To: References: <1687ed841001052337i3e61f29ejaf30f6f800af600b@mail.gmail.com> Date: Fri, 8 Jan 2010 17:59:01 +0100 X-Google-Sender-Auth: 74b68c8cfb71e08e Message-ID: <66f535321001080859p5d5de206o3e0615b5ad45efe4@mail.gmail.com> Subject: Re: retrieving particular documents in one shot From: Oliver Oli To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Why POST and not GET? 2010/1/6 Alex Koshelev : > Hi, Michal! > > If you want to get set of keys from view[1] or database[2] you can make P= OST > request with body consits of needed keys -- for your example: > > =C2=A0{'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 wro= te: > >> 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: >> =C2=A0 =C2=A0key=3D'a'&key=3D'g'&key=3D'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=C5=82 Nowikowski >> >