couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ko...@fillibach.de
Subject Re: Gathering data through recursive references
Date Wed, 16 Dec 2009 16:10:45 GMT

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)

HTH,
Kosta



Mime
View raw message