couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Clark Hess <seanh...@gmail.com>
Subject Re: include_docs vs emit("somekey", doc)
Date Thu, 11 Feb 2010 04:50:03 GMT
@Chris - I think maybe you misunderstood? I'm emitting the doc as the value,
not the key. Do your comments hold true for the value too?

@David - Why would emitting null as the document be faster? To be clear, I'm
asking about how long it takes to query against a view with include_docs vs
one that emits the document as the value, not how long it takes to build
it.

Thanks Guys



On Wed, Feb 10, 2010 at 9:47 PM, David Goodlad <david@goodlad.ca> wrote:

> On Thu, Feb 11, 2010 at 3:27 PM, Sean Clark Hess <seanhess@gmail.com>
> wrote:
> > If you emit a document as a value in a view, does it actually rewrite the
> > document on the disk somewhere, or just point to it?
>
> It writes it to the disk
>
> > Is one faster than the other?
>
> Emitting null as the value is generally faster, and you can still pull
> the doc via the include_docs parameter.
>
> Dave
>

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