couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avi Flax <a...@arc90.com>
Subject Re: startkey_docid and "wildcard" paging
Date Sun, 01 Aug 2010 23:38:35 GMT
On Sun, Aug 1, 2010 at 19:26, J Chris Anderson <jchris@gmail.com> wrote:

> first query is just ?limit=10
>
> second query uses the key of the last row of the first query as the startkey (and the
id of that row's doc as startkey_docid), and limit=10, and skip=1 (to avoid getting the old
last row as the new first row).

Thanks Chris, but I feel like I'm missing something. Let me get more concrete.

My query for page 1 looks like this:

http://localhost:5984/avi/_design/main/_view/by_label?limit=11&descending=true&startkey=[%22pool%22,%22cooking%22,{}]&endkey=[%22pool%22,%22cooking%22]

The last row, the 11th, has the ID E2A0D3D1-3E37-47D1-BC5E-F84CCD60E1B7.

So I tried just adding
startkey_docid=E2A0D3D1-3E37-47D1-BC5E-F84CCD60E1B7 to the URL. But
that didn't work — I got the same set of rows.

Does that help clarify what my confusion is?

Thanks!
Avi

Mime
View raw message