Apologies for later reply. No, I am not doing any reduce, but thanks for laying it out for me. That helped a lot :)
On Sat, Aug 25, 2012 at 2:04 AM, Jayson Barley <[email protected]>wrote: > If you are only using a map function you could do this with a show > function. If you are reducing, which you probably are, you could emit both > documents if the id of the parent is in the child. This would be a > simulated join that you could then reduce and process with a show function > or on the client side. > > On Fri, Aug 24, 2012 at 10:41 AM, Andrey Kuprianov < > [email protected]> wrote: > > > Actually, it would still be convenient to pull any document from within a > > view based on some id in order to emit mixed value of both base document > > and a dependent one. Oh, well.. Maybe in future releases. > > > > On Sat, Aug 25, 2012 at 1:27 AM, Andrey Kuprianov < > > [email protected]> wrote: > > > > > Yup, that's right! I have never actually looked at that before, Thanks > > > Jayson. > > > > > > > > > On Sat, Aug 25, 2012 at 1:21 AM, Jayson Barley < > [email protected] > > >wrote: > > > > > >> It sounds like you want a view that emits some values and emits a doc > > >> based > > >> on the id contained in some field. If I understand this correctly you > > >> should be able to use a linked document to accomplish what you need. > > >> > > >> > > >> > > > http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views#Linked_documents > > >> > > >> > > >> On Fri, Aug 24, 2012 at 10:11 AM, Andrey Kuprianov < > > >> [email protected]> wrote: > > >> > > >> > What is the reason that we cannot pull an arbitrary document from > > >> within a > > >> > design document view function? > > >> > > > >> > > > > > > > > >
