Bug #118481 MySQL 8.4.5 chooses suboptimal index for UPDATE query, leading to deadlocks and performance degradation
| Submitted: | 18 Jun 2025 20:04 | Modified: | 3 Aug 2025 18:30 |
|---|---|---|---|
| Reporter: | Rajshree Nema | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | Mysql 8.4.5 | OS: | Linux (Amazon Linux (AWS RDS managed)) |
| Assigned to: | Assigned Account | CPU Architecture: | Any |
| Tags: | Optimizer bug | ||
[18 Jun 2025 20:04]
Rajshree Nema
[3 Jul 2025 18:30]
MySQL Verification Team
Hi, Optimizer is always considering it. It can just decide not to use it always. I can't reproduce the problem using my generated data. Can you provide data (like for Bug #108127) that makes this reproducible? Thanks
[4 Aug 2025 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[4 Aug 2025 6:05]
Shane Bester
could also be useful to see outputs of : select count(*), count(distinct ApplicantId), sum(ApplicantId = 22262106), count(distinct FormId), sum(FormId = 23), count(distinct MemberId), sum(MemberId = 187), count(distinct InvitationId), sum(InvitationId = 240020), sum(ApplicantId = 22262106 AND FormId = 23 AND MemberId = 187 AND InvitationId = 240020), sum(ApplicantId = 22262106 AND FormId = 23), sum(ApplicantId = 22262106 AND MemberId = 187), sum(ApplicantId = 22262106 AND InvitationId = 240020), sum(FormId = 23 AND MemberId = 187), sum(FormId = 23 AND MemberId = 187 AND InvitationId = 240020), sum(FormId = 23 AND InvitationId = 240020), sum(MemberId = 187 AND InvitationId = 240020), sum(ApplicantId = 22262106 AND MemberId = 187 AND InvitationId = 240020) from RecForm \G show indexes from 'RecForm';
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.