couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: Wildcard search on startkey and endkey
Date Wed, 19 Sep 2012 16:44:39 GMT
The key and id are always included.

On Wed, Sep 19, 2012 at 12:45 AM, Pulkit Singhal <pulkitsinghal@gmail.com>wrote:

> Hello Aurélien!
>
>
> You can "emit([elem1, elem2, elem3, elem4, elem5], null)"
> > and then get the view with "include_docs=true".
> > You'll get a smaller index on disk and I suppose you will need less
> memory
> > and CPU to handle it.
> >
>
> I thought it needed to at least emit the _id like so:
> emit([elem1, elem2, elem3, elem4, elem5], {"_id":doc._id})
>
> Or am I confusing the download of associative documents here?
>

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