couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Emiting a Doc from Erlang View
Date Mon, 03 Oct 2011 16:50:15 GMT

On Oct 3, 2011, at 4:53 AM, Thomas Van de Velde wrote:

I thought include_docs only works when you have a reduce function defined as well.

Nope, it always works. But if you’re going to use it all the time, it’s faster to just
emit the document into the view, as that saves a b-tree lookup per row every time the view
is fetched.

—Jens

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