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 RobertNewson
Date Sat, 22 Jan 2011 16:54:30 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 RobertNewson.
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views?action=diff&rev1=37&rev2=38

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

  === Linked documents ===
  ''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.
+ If you emit an object value which has '''{'_id': XXX}''' then {{{include_docs=true}}} will
fetch the document with id XXX rather than the document which was processed to emit the key/value
pair.
  
  This means that if one document contains the ids of other documents, it can cause those
documents to be fetched in the view too, adjacent to the same key if required.
  
@@ -247, +247 @@

  }}}
  which makes it very cheap to fetch a document plus all its ancestors in one query.
  
- To fetch the "doc" object you might have to pass {{{?include_docs=true}}} as HTTP GET parameter.
- 
  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.
  
  === Complex Keys ===

Mime
View raw message