couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HTTP_view_API" by LenaHerrmann
Date Wed, 06 Jan 2010 15:11:48 GMT
Dear Wiki user,

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

The "HTTP_view_API" page has been changed by LenaHerrmann.
The comment on this change is: Added inclusive_end.


      * group_level=int
      * reduce=false ''Trunk only (0.9)''
      * include_docs=true ''Trunk only (0.9)''
+     * inclusive_end=true
    * POST
      * {"keys": ["key1", "key2", ...]} ''Trunk only (0.9)''
@@ -151, +152 @@

  The ''include_docs'' option will include the associated document. Although, the user should
keep in mind that there is a race condition when using this option. It is possible that between
reading the view data and fetching the corresponding document that the document has changed.
If you want to alleviate such concerns you should emit an object with a _rev attribute as
in ''emit(key, {"_rev": doc._rev})''. This alleviates the race condition but leaves the possiblity
that the returned document has been deleted (in which case, it includes the ''"_deleted":
true'' attribute).
+ The ''inclusive_end'' option controls whether the ''endkey'' is included in the result.
It defaults to true.
  == Debugging Views ==

View raw message