incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kosta Welke <ko...@fillibach.de>
Subject Re: How to make equivalent of WHERE on JOINed table in CouchDB?
Date Sun, 13 Dec 2009 12:51:26 GMT
> I can construct map function to get every person and his/her car next
> to each other. In such case key is array [person.id, 0] and
> [car.person_id, 1].
> 
> What I can't do, is limiting this view to owners of specific brand
> only, e.g. if I need salaries of owners of Ferrari. 

What about emitting [car.person_id, 1, brand]? Then you can e.g. query for startkey and endkey
["MikeMyers", 1, "Ferrari"]

HTH,
Kosta
Mime
View raw message