3 ms·
Both of these are bad for pagination - if the dataset isn't read-only. If the search criteria matches 100 rows at the time of the request, you may want to page
by e12e 6y ago
Both of these are bad for pagination - if the dataset isn't read-only. If the search criteria matches 100 rows at the time of the request, you may want to page through those matches, even if, by the time the client (human or machine) gets to page three, the query matches 80 or 110 rows - or worse, if the query still matches 100 rows, but not all of them are the same as the original 100!
You would normally capture such state by using cursors.
- fuy 6y agoCould you elaborate on "using cursors" part? Are you talking about database-level cursors? If so, do you know any resources which cover this approach?