perf: Use more performant way to obtain and check the email as a login name with token login#41927
Merged
juliusknorr merged 3 commits intomasterfrom Dec 5, 2023
Merged
Conversation
b396c27 to
f4668c2
Compare
…n name with token login Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
381db45 to
0ccf84b
Compare
Member
Author
|
@nickvergessen As discussed via chat, I split out the additional index and moved it to #42022 to not forget about that. |
kesselb
reviewed
Dec 4, 2023
| if (!(\count($users) === 1 && $this->login($users[0]->getUID(), $password))) { | ||
|
|
||
| if ($isTokenPassword) { | ||
| $dbToken = $this->tokenProvider->getToken($password); |
nfebe
approved these changes
Dec 4, 2023
nickvergessen
approved these changes
Dec 5, 2023
Member
Author
|
/backport to stable28 |
Member
Author
|
/backport to stable27 |
Member
Author
|
/backport to stable26 |
Member
Author
|
/backport to stable25 |
Contributor
|
Automatic backports have failed... |
Member
Author
|
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable28 |
Member
Author
|
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable27 |
Member
Author
|
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable26 |
Member
Author
|
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable25 |
This was referenced Jan 9, 2024
Merged
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.
UserManager::getByEmail is slow on large userbases so we should avoid it where possible.
Add a partial index to the configvalue to ensure that most email checks can use an indexed query-> Moved to perf: Add partial index on configvalue of preferences table #42022KEY `tmp_configvalue_index` (`configvalue`(80)),cannot create index on expression with datatype LOBTODO: