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] Trivial Update of "HttpViewApi" by ChrisAnderson
Date Wed, 28 May 2008 20:42:49 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 ChrisAnderson:
http://wiki.apache.org/couchdb/HttpViewApi

The comment on the change is:
remove combine parameter

------------------------------------------------------------------------------
      },
      "total_purchases": {
        "map": "function(doc) { if (doc.Type == 'purchase')  emit(doc.Customer, doc.Amount)
}",
-       "reduce": "function(keys, values, combine) { return sum(values) }"
+       "reduce": "function(keys, values) { return sum(values) }"
      }
    }
  }
@@ -166, +166 @@

  
  When creating views, CouchDB will check the syntax of the submitted JSON, but the view functions
themselves will not be syntax checked by the Javascript interpreter. And if any one of the
view functions has a syntax error, none of the view functions in that design document will
execute. Perhaps test your functions in a temporary view before saving them in the database.
  
- There is a log function available in the views, which logs to the couch.log. It can be helpful
for debugging but hinders performance, so it should be used sparingly in production systems.
+ As of r660140 there is a log function available in the views, which logs to the couch.log.
It can be helpful for debugging but hinders performance, so it should be used sparingly in
production systems.
  
  {{{
  {

Mime
View raw message