incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Kuprianov <andrey.koupria...@gmail.com>
Subject Re: CouchDB joins
Date Mon, 27 Aug 2012 01:23:14 GMT
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 <jayson.barley@gmail.com>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 <
> andrey.kouprianov@gmail.com> 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 <
> > andrey.kouprianov@gmail.com> 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 <
> jayson.barley@gmail.com
> > >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 <
> > >> andrey.kouprianov@gmail.com> wrote:
> > >>
> > >> > What is the reason that we cannot pull an arbitrary document from
> > >> within a
> > >> > design document view function?
> > >> >
> > >>
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message