-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve user status revert performance #31106
Improve user status revert performance #31106
Conversation
at least the first/first-two commits should be backported to 23 |
99f51e9
to
cd31725
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
…d of 3*n Signed-off-by: Joas Schilling <coding@schilljs.com>
…ser_id leading underscore already Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
e1aa54b
to
058d1de
Compare
Also reduced inserting the status from 7 to 2-3 queries as described in #31190 |
Drone tests isn't necessary? |
if (!$userStatus->getIsBackup() | ||
&& $userStatus->getMessageId() === $messageId | ||
&& $userStatus->getStatus() === $status) { | ||
$statuesToDelete[$userStatus->getUserId()] = $userStatus->getId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo deleting statues 🗽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Currently if a meeting in Talk is ended for everyone the database basically dies. One of the problems is resetting the user status:
Queries before "5 per user"
revertUserStatus
revertUserStatus
removeUserStatus
removeUserStatus
revertUserStatus
Plan level 1: Improve current function: "3 per user"
revertUserStatus
: ☑️revertUserStatus
: 💥 Remove by adding a delete which has the matching parametersremoveUserStatus
: 💥 Removed in this PRremoveUserStatus
: ☑️revertUserStatus
: ☑️Plan level 2: Add special handling for "End call for everyone": "3 in total"
Plan level 3
using WHERE
=> removed from query as the leading underscore ensures it's value alreadyFix #31190