Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DB table locks on messenger_messages with many failures#52276

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:5.4frombn-jdcook:fix_52273
Oct 25, 2023

Conversation

@bn-jdcook
Copy link
Contributor

@bn-jdcookbn-jdcook commentedOct 24, 2023
edited by nicolas-grekas
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#52273
LicenseMIT

This reorders the query to target thequeue_name first and not include anyfailed messages in the first part of theWHERE clause to help performance.

@bn-jdcook
Copy link
ContributorAuthor

I am not sure why AppVeyor is failing but it appears to be on all PRs to 5.4.

@OskarStarkOskarStark changed the titlefix #52273 [doctrine-messenger] DB table locks on messenger_messages …[Medsenger][Doctrine] DB table locks on messenger_messages …Oct 25, 2023
@OskarStarkOskarStark changed the title[Medsenger][Doctrine] DB table locks on messenger_messages …[Medsenger][Doctrine] DB table locks on messenger_messages wirh many failuresOct 25, 2023
@OskarStarkOskarStark changed the title[Medsenger][Doctrine] DB table locks on messenger_messages wirh many failures[Messenger][Doctrine] DB table locks on messenger_messages wirh many failuresOct 25, 2023
@nicolas-grekasnicolas-grekas changed the title[Messenger][Doctrine] DB table locks on messenger_messages wirh many failures[Messenger][Doctrine] DB table locks on messenger_messages with many failuresOct 25, 2023
@carsonbotcarsonbot changed the title[Messenger][Doctrine] DB table locks on messenger_messages with many failuresDB table locks on messenger_messages with many failuresOct 25, 2023
@fabpot
Copy link
Member

Thank you@bn-jdcook.

bn-jdcook reacted with thumbs up emoji

@fabpotfabpot merged commitb34c4c7 intosymfony:5.4Oct 25, 2023
@bn-jdcookbn-jdcook deleted the fix_52273 branchOctober 25, 2023 19:16
@antonkomarev
Copy link

antonkomarev commentedOct 25, 2023
edited
Loading

@bn-jdcook how does this affect performance? Doesn't the database query planner care about the order of WHERE clauses?

What database are you using? Have you tried to make EXPLAIN to see if the query plan is different?

// I'm not against these changes. Order is more logical now. But I haven't faced such issues in Postgres.

@ghost
Copy link

What database are you using?

I agree a reporter should mention a database he's using when reporting an issue related to the database.

Btw. I really wonder whether a database can create a query plan that knows which AND condition to use first (unless both columns do not differ somehow from database point of view). E.g. how can it know that filtering first byqueue_name will be more efficient.

This was referencedOct 29, 2023
@xabbuhxabbuh mentioned this pull requestOct 29, 2023
@fabpotfabpot mentioned this pull requestOct 29, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

@bn-jdcook@fabpot@antonkomarev@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp