Uh oh!
There was an error while loading. Please reload this page.
perf: Use more performant way to obtain and check the email as a login name with token login - #41927
Merged
Merged
Conversation
juliusknorrforce-pushed
the
perf/login-with-email-token
branch
from
November 30, 2023 15:55
b396c27 to
f4668c2Comparejuliusknorr
requested review from
a team, come-nc, icewind1991, kesselb, nfebe and nickvergessen
and removed request for
a teamNovember 30, 2023 15:55
juliusknorr
marked this pull request as ready for review
November 30, 2023 19:50
…n name with token login Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
juliusknorrforce-pushed
the
perf/login-with-email-token
branch
from
November 30, 2023 19:51
381db45 to
0ccf84bComparejuliusknorr
commented
Dec 4, 2023
MemberAuthor
@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
juliusknorr
commented
Dec 5, 2023
MemberAuthor
/backport to stable28 |
juliusknorr
commented
Dec 5, 2023
MemberAuthor
/backport to stable27 |
juliusknorr
commented
Dec 5, 2023
MemberAuthor
/backport to stable26 |
juliusknorr
commented
Dec 5, 2023
MemberAuthor
/backport to stable25 |
nfebe
commented
Dec 6, 2023
Contributor
Automatic backports have failed... |
juliusknorr
commented
Dec 6, 2023
MemberAuthor
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable28 |
juliusknorr
commented
Dec 6, 2023
MemberAuthor
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable27 |
juliusknorr
commented
Dec 6, 2023
MemberAuthor
/backport a3a343c,3cd1d74a815531c9b7ae25ebbf8e7c45fa566e74 to stable26 |
juliusknorr
commented
Dec 6, 2023
MemberAuthor
/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 freeto 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: