Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 85805 invoked from network); 17 Dec 2009 09:59:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 09:59:56 -0000 Received: (qmail 73232 invoked by uid 500); 17 Dec 2009 09:59:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 73137 invoked by uid 500); 17 Dec 2009 09:59:54 -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 73127 invoked by uid 99); 17 Dec 2009 09:59:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 09:59:53 +0000 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 [145.58.30.184] (HELO out1a.mail.omroep.nl) (145.58.30.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 09:59:43 +0000 Received: from localhost (ou1aclean [10.10.30.156]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id BE7E23C000AB for ; Thu, 17 Dec 2009 10:59:23 +0100 (CET) X-Virus-Scanned: NPO ICT Received: from tweehoog.vpro.nl (tweehoog.vpro.nl [145.58.169.4]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id 9C4583C000A8 for ; Thu, 17 Dec 2009 10:59:23 +0100 (CET) Received: from [145.58.169.113] (helo=[145.58.169.113]) by tweehoog.vpro.nl with esmtp (Exim 3.36 #1) id 1NLD8l-0004wn-00 for user@couchdb.apache.org; Thu, 17 Dec 2009 10:59:23 +0100 Message-ID: <4B2A00FB.3020202@vpro.nl> Date: Thu, 17 Dec 2009 10:59:23 +0100 From: Nils Breunese User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "user@couchdb.apache.org" Subject: Re: Gathering data through recursive references References: <4B28FAF5.8040506@vpro.nl> <20091216171045.16874w2gay818dc0@webmail.df.eu> In-Reply-To: <20091216171045.16874w2gay818dc0@webmail.df.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Kosta wrote: > Quoting Nils Breunese : > >> Now I need to gather all the program data for a group (say, all >> programs that are an episode of 'group:3' or 'group:1'). Does this >> require chained map/reduce (which is not in CouchDB yet, but seems >> to come up more and more on this mailinglist) or is there another >> way to do this? > > The way to do this either are > * Recursive Queries (i.e. ask for all programs in group x and use > recursive queries to check whether x is actually in the path z-y-x) > * Storing the whole path in the document (which is a pain in case you > ever move the group) Thanks for confirming my thoughts. I'll see if I can get the incoming data to change so the whole path is stored. Otherwise the clients will indeed need to use multiple queries. Nils.