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

Support for a page size parameter #44

Closed
SebastianKG opened this issue Aug 11, 2020 · 2 comments
Closed

Support for a page size parameter #44

SebastianKG opened this issue Aug 11, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@SebastianKG
Copy link

Is your feature request related to a problem? Please describe.
Trying to do large-scale processing of the Trefle dataset takes a long time due to the hardcoded page size of 10.

Describe the solution you'd like
A page size parameter across all resource-bearing endpoints that changes the amount of results returned. It would be excellent if this went up to at least 1000. The /plants endpoint is a specific painpoint for my use case.

Describe alternatives you've considered
The only possible alternative is making tens of thousands of requests instead of hundreds

@SebastianKG SebastianKG added the enhancement New feature or request label Aug 11, 2020
@lambda2
Copy link
Member

lambda2 commented Aug 11, 2020

Hey @SebastianKG, unfortunately we're currently running Trefle in small servers, and can't allow too heavy responses as it will slow down everybody. So in order to ensure a quality service to all users, we prefer to limit to 20 results.
We will soon provide an archive of our database for you to download, and thus avoid iterating on all the plants.

@lambda2 lambda2 closed this as completed Aug 11, 2020
@SebastianKG
Copy link
Author

@lambda2 having a downloadable archive would actually solve the problem just as well, I will wait for that. Thank you

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

2 participants