Pagination with startkey, endkey and limit #3007
-
Hello, I have a little problem with couchdb, it's about pagination with startkey, endkey and limit. I can page to the next pages. But, I cannot understand how to keep the previous key to return. I use nodejs + express. If I could pass on some material with an example I would appreciate it. I've looked for a lot, a lot, but, there is nothing but the algorithm of the documentation itself. If you can help me I would appreciate it very much. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The generally recommended approach is to store the previous page's startkey/endkey/limit values for paging backwards. |
Beta Was this translation helpful? Give feedback.
The generally recommended approach is to store the previous page's startkey/endkey/limit values for paging backwards.