-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Before proceeding, is there an existing issue or discussion for this?
- I have done a search for similar issues and discussions.
Description
We are currently using offset based pagination, which has some drawbacks
- It gets slower as the offset increases.
- Result will be inconsistent if rows are added or removed. This mainly affects use cases like exporting data to csv.
Implementation Considerations
Keyset based pagination solves the above problems but has some other drawbacks as well
- Pages must be retrieved in order, it is not possible to jump to the middle of the result set.
- Typically it is not possible to show the number of results.
These 2 drawbacks means that we need to redesign the frontend, either some kind of infinite scrolling or infinite paging.
We can also do a mixture where the the offset pagination has a hard limit on how deep it can go, more than that will require using keyset pagination.
Alternatives
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request