incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Skupin <>
Subject endkey doesn't obey limit parameter and always returns entries starting with offset 0
Date Sun, 12 Sep 2010 07:06:50 GMT

For my current Couch application I'm using pagination to show only 50
results per page. To navigate back and forward the endkey vs. startkey
parameters are used. While startkey in combination with limit is working
fine, endkey doesn't return results for [offset(endkey)-limit,
offset(endkey)] but for [0, limit]. This makes pagination impossible for me
and looks like to be a bug. An example you can find here:

After opening the page click 'Next' twice and check the URL of the
'Previous' link before clicking on it. The endkey parameter will not be
obeyed and a click on that link causes the first page to be opened.

The code can be found at:

Is the above problem a known broken behavior and worth filing a bug?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message