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

[IMPROVE] optimized groups.listAll response time #22941

Merged
merged 4 commits into from
Oct 5, 2021
Merged

Conversation

ostjen
Copy link
Contributor

@ostjen ostjen commented Aug 16, 2021

Proposed changes (including videos or screenshots)

groups.listAll endpoint was having performance issues, specially when the total number of groups was high. This happened because the endpoint was loading all objects in memory then using splice to paginate, instead of paginating beforehand.

Considering 70k groups, this was the performance improvement:

before
image

after
image

Issue(s)

Steps to test or reproduce

Further comments

@ostjen ostjen merged commit 7babded into develop Oct 5, 2021
@ostjen ostjen deleted the groupsAPIOptimization branch October 5, 2021 17:01
@sampaiodiego sampaiodiego mentioned this pull request Oct 28, 2021
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