couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "How_to_page_through_results" by JanLehnardt
Date Wed, 23 Nov 2011 12:33:56 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "How_to_page_through_results" page has been changed by JanLehnardt:

add link to better example

- How to page through results.
+ = How to page through results = 
- 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 limit and a skip value of 1.
+ Please see the pagination section in [[|CouchDB:
The Definitive Guide]]
- So if you requested 10 results using ''http://couchdb/db/_design/mydesign/_view/myview?limit=10'',
then you would get the next 10 results by requesting ''http://couchdb/db/_design/mydesign/_view/myview?limit=10&startkey=lastkey&skip=1''
, where lastkey is the value of the last key you received.
- There are some implementations of paginating. This is a special purpose one in Ruby which
give you all results with the same key, grouped together.

View raw message