incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <N.Breun...@vpro.nl>
Subject Re: Gathering data through recursive references
Date Thu, 17 Dec 2009 09:59:23 GMT
Kosta wrote:

> Quoting Nils Breunese <N.Breunese@vpro.nl>:
> 
>> 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.

Mime
View raw message