Skip to content

perf: use getUserGroupIds - #92

Merged
jo23sh merged 1 commit into
jo23sh:masterfrom
CarlSchwan:carl/perf-getUserGroupIds
Aug 4, 2026
Merged

perf: use getUserGroupIds#92
jo23sh merged 1 commit into
jo23sh:masterfrom
CarlSchwan:carl/perf-getUserGroupIds

Conversation

@CarlSchwan

Copy link
Copy Markdown
Contributor

Several time faster than getUserGroups as we don't have to load group objects.

@CarlSchwan

CarlSchwan commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Need to adapt the unit tests :( But generally I don't get that code it's discarding the full group object with the array_key and then load the group again with $this->groupManager->search

Edit: Ah $userGroupNames and $groupNames are not the same xD

Several time faster than getUserGroups as we don't have to load group
objects.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan force-pushed the carl/perf-getUserGroupIds branch from f0b10eb to c961f07 Compare August 4, 2026 09:19
@jo23sh

jo23sh commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Also thansk for this contribution!

@jo23sh
jo23sh merged commit 93b358d into jo23sh:master Aug 4, 2026
6 of 7 checks passed
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