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 matto
Date Mon, 05 Oct 2009 07:06:09 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 matto:
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views?action=diff&rev1=24&rev2=25

  
  Views are the primary tool used for querying and reporting on CouchDB documents. There are
two different kinds of views: permanent and temporary views.
  
- '''Permanent views''' are stored inside special documents called design documents, and can
be accessed via an HTTP ''GET'' request to the URI ''/{dbname}/{docid}/{viewname}'', where
''{docid}'' has the prefix ''_docid/'' so that CouchDB recognizes the document as a design
document, and ''{viewname}'' has the prefix ''_view/'' so that CouchDB recognizes it as a
view.
+ '''Permanent views''' are stored inside special documents called design documents, and can
be accessed via an HTTP ''GET'' request to the URI ''/{dbname}/{docid}/{viewname}'', where
''{docid}'' has the prefix ''_design/'' so that CouchDB recognizes the document as a design
document, and ''{viewname}'' has the prefix ''_view/'' so that CouchDB recognizes it as a
view.
  
  '''Temporary views''' are not stored in the database, but rather executed on demand. To
execute a temporary view, you make an HTTP ''POST'' request to the URI ''/{dbname}/_temp_view'',
where the body of the request contains the code of the view function and the ''Content-Type''
header is set to ''application/json''.
  

Mime
View raw message