Skip to content

perf: Don't fetch all users from a group on login - #1231

Merged
CarlSchwan merged 1 commit into
masterfrom
carl/login-perf
Sep 10, 2026
Merged

CarlSchwan merged 1 commit into
masterfrom
carl/login-perf

Conversation

@CarlSchwan

Copy link
Copy Markdown
Member

Instead of fetching all users from a group to then check if they are in the saml backend. Do directly a join on the saml user table.

This should fix the multiple thousands of DB requests created on any SAML logins.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@CarlSchwan CarlSchwan added this to the 8.4.0 milestone Sep 10, 2026
@CarlSchwan CarlSchwan self-assigned this Sep 10, 2026
@CarlSchwan
CarlSchwan requested a review from blizzz as a code owner September 10, 2026 09:48
Instead of fetching all users from a group to then check if they are in
the saml backend. Do directly a join on the saml user table.

This should fix the multiple thousands of DB requests created on any SAML
logins.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan merged commit a690c2f into master Sep 10, 2026
61 checks passed
@CarlSchwan
CarlSchwan deleted the carl/login-perf branch September 10, 2026 11:40
@CarlSchwan

Copy link
Copy Markdown
Member Author

Fix #1194 btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants