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 "Introduction_to_CouchDB_views" by JensAlfke
Date Mon, 04 Jun 2012 22:12:36 GMT
Dear Wiki user,

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

The "Introduction_to_CouchDB_views" page has been changed by JensAlfke:
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views?action=diff&rev1=41&rev2=42

Comment:
Clarification of linked documents. Documented '_rev' key.

  
  Note that the "id" in the row is still that of the originating document. The only difference
is that include_docs fetches a different doc.
  
+ The current revision of the document is resolved at query time, not at the time the view
is generated. This means that if a new revision of the linked document is added later, it
will appear in view queries even though the view itself hasn't changed. To force a specific
revision of a linked document to be used, emit a "_rev" property as well as "_id".
+ 
  === Complex Keys ===
  Keys are not limited to simple values. You can use arbitrary JSON values to influence sorting.
See ViewCollation for the rules.
  

Mime
View raw message