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 2008/12/04 18:03:21 UTC
[Couchdb Wiki] Update of "HTTP view API" by ThomasKerpe
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 ThomasKerpe:
http://wiki.apache.org/couchdb/HTTP_view_API
The comment on the change is:
Removed Information about negative count... (as mentioned in the IRC)...
------------------------------------------------------------------------------
A JSON structure of ''{"keys": ["key1", "key2", ...]}'' can be posted to any user defined view or ''_all_docs'' to retrieve just the view rows matching that set of keys. Rows are returned in the order of the keys specified. Combining this feature with ''include_docs=true'' results in the so-called ''multi-document-fetch'' feature.
- If you specify ''?count=0'' you don't get any data, but all meta-data for this View. The number of documents in this View for example. If ''count'' is specified as a negative number, you will receive that many documents prior to the specified ''startkey''.
+ If you specify ''?count=0'' you don't get any data, but all meta-data for this View. The number of documents in this View for example.
The ''skip'' option should only be used with small values, as skipping a large range of documents this way is inefficient (it scans the index from the startkey and then skips N elements, but still needs to read all the index values to do that). For efficient paging use ''startkey'' and/or ''startkey_docid''.