couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "Views" by JanLehnardt
Date Mon, 16 Jun 2008 11:04:09 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 JanLehnardt:

The comment on the change is:
add note about all views being updated if one in the same design doc gets querie

  For both kinds of views, the view is defined by a !JavaScript function that maps view keys
to values (although it is possible to use other languages than !JavaScript by plugging in
third-party view servers).
  Note that by default views are not created and updated when a document is saved, but rather,
when it is accessed. As a result, the first access might take some time depending on the size
of your data while CouchDB creates the view. If preferable the views can also be updated when
a document is saved using an external script that calls the views when updates have been made.
An example can be found here: RegeneratingViewsOnUpdate
+ Note that all views in a single design document get updated when one of the views in that
design document gets queried. 
  Note on !JavaScript API change: Prior to Tue, 20 May 2008 (Subversion revision r658405)
the function to emit a row to the map index, was named "map". It has now been changed to "emit".

View raw message