Skip to content

[IMPROVE] optimized groups.listAll response time#22941

Merged
ostjen merged 4 commits intodevelopfrom
groupsAPIOptimization
Oct 5, 2021
Merged

[IMPROVE] optimized groups.listAll response time#22941
ostjen merged 4 commits intodevelopfrom
groupsAPIOptimization

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

Comments