...
- Front-end side:
- remove
offset
from query - take last result from previous page and pass parameters(parameters that is used for sort) from it to query for the next page
- remove
- Back-end side:
- remove offseting
- add filtering for parameters that is used for ordering
SQL example(fetch second page):
offset | seek |
---|---|
Conclusion
This page was created to introduce seek method over regular offset pagination
in Postgres.
...