incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <jch...@grabb.it>
Subject Re: Iterating over/paging through large sets of documents
Date Mon, 28 Jul 2008 04:24:48 GMT
On Sun, Jul 27, 2008 at 8:24 PM, Brad King <brking@gmail.com> wrote:
>  What I do is simply request a key and a count of +1
> more than I need for a page, then use that last value as my start key
> for the next page. Simple, clean, fast. I don't even bother trying to
> use and end key.

One caveat about working without endkey: if your view emits more times
for a given key than your count (eg startkey == last key returned),
you could get stuck in a loop.

-- 
Chris Anderson
http://jchris.mfdz.com

Mime
View raw message