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 "How to page through results" by ChrisAnderson
Date Thu, 04 Dec 2008 07:40:12 GMT
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 ChrisAnderson:
http://wiki.apache.org/couchdb/How_to_page_through_results

The comment on the change is:
created page in response to request

New page:
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 (currently "count") parameter.

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.

http://github.com/jchris/couchrest/tree/master/lib/couchrest/helper/pager.rb

Mime
View raw message