Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor pagination #808

Open
Huluti opened this issue Sep 25, 2024 · 1 comment
Open

Cursor pagination #808

Huluti opened this issue Sep 25, 2024 · 1 comment
Labels

Comments

@Huluti
Copy link

Huluti commented Sep 25, 2024

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

For performance reasons, for huge datasets, it could be really good to have a solution to paginate using cursor strategy instead of LIMIT/OFFSET.

Cursor based pagination is more scalable compared to offset based pagination. As the dataset grows, the cursor based pagination method can continue to retrieve data efficiently, while offset based pagination becomes less efficient as the dataset grows larger.

Of course, it has some some disadvantages, such as not being able to choose a specific page.

Some resources:

Maybe it could be added as a new option?

@Huluti Huluti changed the title KEYSET/Cursor pagination Cursor pagination Sep 25, 2024
@garak garak added the feature label Sep 25, 2024
@garak
Copy link
Collaborator

garak commented Sep 27, 2024

If I understand, the cursor pagination doesn't include a page.
It seems this could hardly fit our current implementation, but let me know if you think it could be feasible anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants