core: optimize list applications#18330
Merged
rissson merged 3 commits intogoauthentik:mainfrom Dec 12, 2025
Merged
Conversation
✅ Deploy Preview for authentik-docs canceled.
|
✅ Deploy Preview for authentik-integrations canceled.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18330 +/- ##
==========================================
- Coverage 93.21% 93.16% -0.06%
==========================================
Files 933 933
Lines 51214 51233 +19
==========================================
- Hits 47741 47733 -8
- Misses 3473 3500 +27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BeryJu
reviewed
Nov 26, 2025
… and access to a lot of applications
b8197e7 to
2e6cb78
Compare
rissson
requested changes
Dec 5, 2025
✅ Deploy Preview for authentik-storybook canceled.
|
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
rissson
approved these changes
Dec 12, 2025
authentik-automation bot
pushed a commit
that referenced
this pull request
Dec 12, 2025
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Contributor
|
🍒 Cherry-pick to |
rissson
added a commit
that referenced
this pull request
Dec 12, 2025
…10) (#18791) Co-authored-by: Ryan Pesek <44002516+ryanpesek@users.noreply.github.com> Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attempt at optimizing applications api for users with a lot of groups and access to a lot of applications
Details
In my testing, the
prefetch_relatedandselect_relatedand modifications to thelist()applications functions all brought moderate improvements. However, the caching of the user data instead of serializing the user again for each timeget_launch_urlis called brought massive improvements. Old behavior was 10s+ for a page of 100 applications and with all of these changes combined the new performance is 1-2sChecklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)