couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: Can you connect one view to another?
Date Wed, 28 Oct 2009 13:10:09 GMT

In short, no. In long, also no, but it can be done server side by
persisting view results into a new db and running the subsequent
Map/Reduce on the derived database. Rinse. Repeat. Admittedly that's
not the most elegant solution and requires server side logic, but as
it turns out, the cascading is difficult to accomplish with the
current incremental view system.

Paul Davis

On Wed, Oct 28, 2009 at 8:43 AM, Welch, Matt <> wrote:
> I'm pretty new to CouchDB so please pardon me if this is a silly
> question, but can you connect the results of one view to another?
> Imagine I have a bunch of children documents and each child has a
> favorite color. I also have a bunch of toy documents and each toy has a
> color. I want to build a list of what toys each child will like based on
> its color.
> I can make a view to emit(color, name) for each toy and something
> similar for each child. But then do I have to connect the two in my
> code? If your dataset gets large that seems like a lot of work gets
> pushed out to the client end. Is there any way to construct a view that
> links these together?
> The contents of this e-mail are intended for the named addressee only. It contains information
that may be confidential. Unless you are the named addressee or an authorized designee, you
may not copy or use it, or disclose it to anyone else. If you received it in error please
notify us immediately and then destroy it.

View raw message