Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Query with startkey doesn't set offset in result #18

snej opened this Issue · 0 comments

1 participant


In CouchDB, a view query's result's 'offset' parameter always says how many rows were skipped at the start, even if you do the skipping using 'startkey' instead of 'offset'. TouchDB doesn't do this, and it would be expensive for it to do so, because the SQL query it runs doesn't tell it how many rows were skipped, so it would have to run a second query just to figure that out.

Damien says this functionality can be useful when doing a 'paging' UI. He suggests maybe enabling it with a special query param in the URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.