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

PIN-4743: Improve getAgreementEServices endpoint query #261

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

galales
Copy link
Contributor

@galales galales commented Mar 27, 2024

Note: the current approach takes all eservice ids from agreements collection at once without pagination (distinct results cannot be paginated), and then paginates the query on eservices collection.
This has been tested in the current worst case scenario (requesting all eservices without filters) in production and the query completes in 1 second.

If the dataset increases significantly this query may need a refactor

@galales galales merged commit 73f9bcb into 1.0.x Mar 28, 2024
4 checks passed
@galales galales deleted the PIN-4743 branch March 28, 2024 09:03
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

Successfully merging this pull request may close these issues.

2 participants