couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Ferguson <ke...@meebo-inc.com>
Subject RE: Map-reduce view without the reduce?
Date Tue, 25 Aug 2009 19:18:14 GMT
Hi Hadley, try adding the reduce=false option to your query string to skip the reduce step.
 You can also add include_docs=true to get the original documents.

Details at:
http://wiki.apache.org/couchdb/HTTP_view_API

Kevin
________________________________________
From: h.wickham@gmail.com [h.wickham@gmail.com] On Behalf Of Hadley Wickham [hadley@rice.edu]
Sent: Tuesday, August 25, 2009 12:15 PM
To: user@couchdb.apache.org
Subject: Map-reduce view without the reduce?

Hi all,

Is it possible to query a map-reduce view and return un-reduced
documents?  The canonical use would be when you are creating a keyword
index and you want to both count the number and retrieve all documents
that use a keyword (but not at the same time).  Creating two separate
views would seem to unnecessarily double the work for the map
component, since it's basically doing the same thing in each case.

Hadley

--
http://had.co.nz/

Mime
View raw message