incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: How to get the doc
Date Thu, 31 May 2012 23:43:07 GMT

On May 31, 2012, at 3:41 PM, Stephan Bardubitzki wrote:

> It sounds to me, when speed is the main concern, emitting the doc should 
> be more appropriate.

You should emit the values you need. If you need the whole doc, and don't mind the extra disk
space, then emit the whole doc. Otherwise, if you don't need the whole doc, emitting only
the necessary values will save disk space and make queries somewhat more efficient because
there's less JSON to send and parse.

View raw message