You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/04/02 13:53:15 UTC

[Couchdb Wiki] Trivial Update of "Introduction_to_CouchDB_views" by SvenHelmberger

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 SvenHelmberger.
The comment on this change is: 0.11 is no longer trunk.
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views?action=diff&rev1=32&rev2=33

--------------------------------------------------

  The second parameter of the ''emit()'' function can be ''null''. CouchDB then only stores the [key,docid] in the view. You can use the view as a compact lookup mechanism and fetch the document's details, if needed, in subsequent requests or by adding parameter ''include_docs=true''
  
  === Linked documents ===
- ''This is a new feature in couchdb trunk / 0.11''
+ ''This is a new feature in couchdb 0.11''
  
  If you emit an object value which has '''{'_id': XXX}''' then include_docs will fetch the document with id XXX rather than the document which was processed to emit the key/value pair.