couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "View server" by KevinFerguson
Date Tue, 18 Aug 2009 23:44:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by KevinFerguson:
http://wiki.apache.org/couchdb/View_server

------------------------------------------------------------------------------
  
  === rereduce ===
  
+ When building a view, CouchDB will apply the {{{reduce}}} step directly to the output of
the map step and the {{{rereduce}}} step to the output of a previous {{{reduce}}} step.
+ 
+ CouchDB will send a list of values, with no keys or document ids, to the rereduce step.
+ 
+ CouchDB sends:
+ 
+ {{{
+ ["rereduce",["function(k, v, r) { return sum(v); }"],[33,55,66]]
+ }}}
+ 
+ The view-server answers:
+ 
+ {{{
+ [true, [154]]
+ }}}
+ 
  === log ===
  
  At any time, the view-server may send some information that will be saved in CouchDB's log
file. This is done by sending a special object with just one field, {{{log}}}, on a separate
line.

Mime
View raw message