From commits-return-7356-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Wed Nov 23 12:34:18 2011 Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34F6072B9 for ; Wed, 23 Nov 2011 12:34:18 +0000 (UTC) Received: (qmail 75805 invoked by uid 500); 23 Nov 2011 12:34:18 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 75767 invoked by uid 500); 23 Nov 2011 12:34:18 -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 75760 invoked by uid 500); 23 Nov 2011 12:34:18 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 75757 invoked by uid 99); 23 Nov 2011 12:34:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:34:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:34:16 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id CA15BAE6; Wed, 23 Nov 2011 12:33:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 23 Nov 2011 12:33:56 -0000 Message-ID: <20111123123356.62864.99224@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22How=5Fto=5Fpage=5Fthrough=5Fres?= =?utf-8?q?ults=22_by_JanLehnardt?= Auto-Submitted: auto-generated Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "How_to_page_through_results" page has been changed by JanLehnardt: http://wiki.apache.org/couchdb/How_to_page_through_results?action=3Ddiff&re= v1=3D5&rev2=3D6 Comment: add link to better example - How to page through results. + =3D How to page through results =3D = = - It is best to follow links when paginating. The next link is the key that= showed up last, in the current query. Use it as startkey, and supply a lim= it and a skip value of 1. + Please see the pagination section in [[http://guide.couchdb.org/draft/rec= ipes.html#pagination|CouchDB: The Definitive Guide]] = - So if you requested 10 results using ''http://couchdb/db/_design/mydesign= /_view/myview?limit=3D10'', then you would get the next 10 results by reque= sting ''http://couchdb/db/_design/mydesign/_view/myview?limit=3D10&startkey= =3Dlastkey&skip=3D1'' , where lastkey is the value of the last key you rece= ived. - = - There are some implementations of paginating. This is a special purpose o= ne in Ruby which give you all results with the same key, grouped together. - = - http://github.com/couchrest/couchrest/blob/master/lib/couchrest/helper/pa= ger.rb -=20