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

Benchmark optimal number of products per page for API requests #552

Closed
tloubrieu-jpl opened this issue Oct 2, 2024 · 4 comments
Closed

Comments

@tloubrieu-jpl
Copy link
Member

tloubrieu-jpl commented Oct 2, 2024

💡 Description

To optimize users interaction with the registry, we want to tell them what is the most efficient number of products they should request per page.
The default pagination should match the found value.

@tloubrieu-jpl
Copy link
Member Author

For queries with ~5 fields and Accept:application/json, 2000 is the optimal page size, see results of tests here:
image

To Be done for all fields and Accept:application/json

To Be done for ~5 fields and Accept:text/csv

@tloubrieu-jpl
Copy link
Member Author

Other results for more fields or text/csv response format:
image

@tloubrieu-jpl
Copy link
Member Author

tloubrieu-jpl commented Oct 2, 2024

Conclusion for now:

  • Accept:application/json, use limit=2000
  • Accept:text/csv, use limit=5000

Performances are better with csv format.

@jordanpadams jordanpadams changed the title Find out what number of products is optimal per page Benchmark optimal number of products per page for API requests Oct 23, 2024
@tloubrieu-jpl
Copy link
Member Author

Reference to this ticket added as a note in the online documentation in commit 5c53601630ff7825c4f3e082889792cffd55a380

@github-project-automation github-project-automation bot moved this from Release Backlog to 🏁 Done in B15.1 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏁 Done
Development

No branches or pull requests

1 participant