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

implement faster pagination #31

Open
geospatial-jeff opened this issue Jan 11, 2021 · 0 comments
Open

implement faster pagination #31

geospatial-jeff opened this issue Jan 11, 2021 · 0 comments

Comments

@geospatial-jeff
Copy link
Collaborator

We switched to keyset pagination using the sqlakeyset library because keyset pagination is faster than limit/offset, especially at higher page counts where limit/offset has to scan through large portions of the table.

The paging is still very slow though, I think because I've only gotten sqlakeyset to work with a two column sort which is reportedly very slow with postgres. So there could be a few things going on:

  1. User error on my part, and sqlakeyset can work with a single column sort and be really fast.
  2. Sqlakeyset requires a two column sort and we need to rethink our paging implementation.

Regardless of the solution it would be nice for paging to be faster.

@gadomski gadomski transferred this issue from stac-utils/stac-fastapi May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant