Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 63008 invoked from network); 5 Aug 2008 19:07:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 19:07:13 -0000 Received: (qmail 21194 invoked by uid 500); 5 Aug 2008 19:07:12 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 21159 invoked by uid 500); 5 Aug 2008 19:07:12 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 21147 invoked by uid 99); 5 Aug 2008 19:07:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 12:07:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 19:06:14 +0000 Received: by yw-out-1718.google.com with SMTP id 5so1471566ywr.0 for ; Tue, 05 Aug 2008 12:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=U8OmP3iewPZZcOT1pJ4IDw3JotkO0Rpgyga08LPar5w=; b=vX+xEHrD0DCvf8k2W93Z+5HMSQV9j7XGCJgFjoq/ar7IETH3mDEjgi+lIHVfJHP8tu IP7xna6mKzUfrMRXACNzZB97/fMDREagZGQFUbTdCKXL5M9utGIVsUJJXIbNjKF48Fd9 b5n+wP7Dd1Kwsfma5ghY5Uv9E10x5q/4kUh0o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=csl6+2M/VXaFV6yustcRTV4dA2OvhETValQjRSuGvdqVP+al9d9PyZXNSSeqV00WhC om3cP3SD0jp/yuziDUFmZZrU9QhrVbtez7DN3659bghiSOTyIqu1tmRLunEOjWr8U0t7 dQl0/GnchoyU123L0GJ8fynY4ZUnuQTpzTXz0= Received: by 10.150.133.18 with SMTP id g18mr1915335ybd.137.1217963200987; Tue, 05 Aug 2008 12:06:40 -0700 (PDT) Received: by 10.151.44.19 with HTTP; Tue, 5 Aug 2008 12:06:40 -0700 (PDT) Message-ID: Date: Tue, 5 Aug 2008 12:06:40 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: Optionally including docs in view results In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48974B09.5080807@inflatablecookie.com> <489752DF.2030603@inflatablecookie.com> <489775CC.3010707@inflatablecookie.com> <64a10fff0808041442r6d864058rd923b494207a7882@mail.gmail.com> <9DF72862-153C-4752-92E0-5DA4EF65CDE1@blit.com> X-Google-Sender-Auth: d7f1c8a85700c9bc X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Aug 5, 2008 at 11:26 AM, Paul Davis wrote: > There was a similar idea posted on another thread that I really liked, > looked at implementing and got scared of because of the mentioned > replication stuff in bulk docs. > > The basic idea was to be able to post something like the following to _bulk_docs > > { > "put": {doc1, doc2, doc3} > "delete": {doc4, doc5} > "get": {doc6} > } This idea has its upsides, but I'm wary of breaking backwards-compatibility with _bulk_docs. However, I don't see anything wrong with the way _bulk_docs currently handles create/update/delete (even if it isn't RESTful). On IRC there have been some good arguments in favor of an include_docs option for view, which could be used with _all_docs and multi-key view requests to yield the _load_docs (fetch docs in bulk) feature. Also with that design Tom's original question on this thread would be a simple case. -- Chris Anderson http://jchris.mfdz.com