Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 38022 invoked from network); 8 Jan 2009 16:25:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2009 16:25:43 -0000 Received: (qmail 62219 invoked by uid 500); 8 Jan 2009 16:25:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62194 invoked by uid 500); 8 Jan 2009 16:25:41 -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 62183 invoked by uid 99); 8 Jan 2009 16:25:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2009 08:25:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [69.20.54.33] (HELO server2.livestoryboard.com) (69.20.54.33) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2009 16:25:32 +0000 Received: from [192.168.2.5] (c-76-24-63-132.hsd1.nh.comcast.net [76.24.63.132]) by server2.livestoryboard.com (Postfix) with ESMTP id 43D632BEA0A for ; Thu, 8 Jan 2009 11:25:11 -0500 (EST) Message-Id: <964B2E5F-3BD2-4A58-9143-26CA28727ECF@koberg.com> From: Robert Koberg To: user@couchdb.apache.org In-Reply-To: <64a10fff0901080759k4e36bc4bx96b5d5465f54997f@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: drill into a doc with a GET? Date: Thu, 8 Jan 2009 11:25:11 -0500 References: <013C8232-C1A7-4C69-8996-21C86B41B340@koberg.com> <5F4CD013-AB8B-4570-8106-6DCE08FBA550@koberg.com> <60226249-2781-43AF-86B8-17940B3B9251@koberg.com> <64a10fff0901080759k4e36bc4bx96b5d5465f54997f@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 8, 2009, at 10:59 AM, Dean Landolt wrote: >> > > A collection in xquery terms is really nothing more than a tag with > a few > supporting APIs. A collection is an XPath thing used in host languages, XSLT and XQuery being most natural. It makes hierarchies easy. > What does it gives you that you can't get right out of the > box with couch? - the ability to have a hierarchy without you having to explicitly list/manage children in a parent document. - the ability to narrow/limit the documents given to a map function - more fine tuned GET, PUT and DELETE Also, a GET request on a collection would return a kind of JSON directory listing. best, -Rob