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

[Custom runtimes - STAC] Implement limit and offset for the /collections endpoint #7

Open
vincentsarago opened this issue Dec 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@vincentsarago
Copy link
Member

By default the /collections endpoint will return ALL collections it finds in pgstac. This is ok when there are not too many collections, but definitely not a good idea when you have more than 100 collections (I was about to ingest 400 collections from LINZ when I realized it would mostly break the endpoint).

in tipgstac I showed how to use limit/offset using pgstac.collections table

https://github.com/developmentseed/tipgstac/blob/main/tipgstac/dependencies.py#L48-L54

instead of the pgstac.all_collections() function

https://github.com/stac-utils/stac-fastapi-pgstac/blob/main/stac_fastapi/pgstac/core.py#L44-L49

@vincentsarago vincentsarago added the enhancement New feature or request label Dec 19, 2023
@vincentsarago
Copy link
Member Author

let's first update the PgSTAC version to 0.8.2 so we can use the new collection_search https://github.com/stac-utils/pgstac/blob/main/CHANGELOG.md#v082

@vincentsarago vincentsarago changed the title [STAC] Implement limit and offset for the /collections endpoint [Custom runtimes - STAC] Implement limit and offset for the /collections endpoint Jan 10, 2024
@vincentsarago vincentsarago transferred this issue from developmentseed/eoAPI Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant