From commits-return-1606-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Sun Jan 04 17:36:05 2009 Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 63973 invoked from network); 4 Jan 2009 17:36:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2009 17:36:05 -0000 Received: (qmail 30976 invoked by uid 500); 4 Jan 2009 17:36:05 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 30937 invoked by uid 500); 4 Jan 2009 17:36:04 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 30928 invoked by uid 500); 4 Jan 2009 17:36:04 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 30925 invoked by uid 99); 4 Jan 2009 17:36:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2009 09:36:04 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2009 17:36:03 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 9200A11182 for ; Sun, 4 Jan 2009 17:35:43 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Sun, 04 Jan 2009 17:35:43 -0000 Message-ID: <20090104173543.6814.30710@eos.apache.org> Subject: [Couchdb Wiki] Update of "HTTP view API" by JasonDavies X-Virus-Checked: Checked by ClamAV on apache.org 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 JasonDavies: http://wiki.apache.org/couchdb/HTTP_view_API The comment on the change is: Renamed 'count' to 'limit' along with note saying when this changed ------------------------------------------------------------------------------ * startkey_docid=docid * endkey=keyvalue * endkey_docid=docid - * count=max rows to return + * limit=max rows to return ''This used to be called "count" previous to Trunk SVN r731159'' * update=false * descending=true * skip=number of rows to skip @@ -164, +164 @@ 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 you specify ''?limit=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''.