Bug #83298 | MYSQL 5.6.10 Optimiser selecting wrong index | ||
---|---|---|---|
Submitted: | 7 Oct 2016 9:52 | Modified: | 20 Oct 2016 12:50 |
Reporter: | masood alam | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 5.6.10 | OS: | Debian (debian-linux-gnu (x86_64) using readline 6.2) |
Assigned to: | CPU Architecture: | Any | |
Tags: | MySQL, optimiser |
[7 Oct 2016 9:52]
masood alam
[7 Oct 2016 9:54]
masood alam
detail optimiser trace attached
Attachment: optimiserbug.txt (text/plain), 20.07 KiB.
[18 Oct 2016 21:39]
MySQL Verification Team
Thank you for the bug report. Your server version 5.6.10 is quite older current release is 5.6.34 please when filling bugs test first with the latest release. Thanks in advance.
[18 Oct 2016 21:44]
masood alam
Hi, I have tested this with various versions including MYSQL 5.7, MariaDB 10.1 and AMAZON Aurora. All versions of MYSQL and MYSQL forks behaves the same. Thanks Masood Lead Data Architect FanDuel LTD
[18 Oct 2016 22:35]
MySQL Verification Team
Thank you for the feedback. Wonder if related to https://bugs.mysql.com/bug.php?id=78651
[18 Oct 2016 23:02]
masood alam
Hi, I think my query is some what different to the case you mentioned. The other bug did not provided optimiser trace, so I cannot compare the detail plan
[20 Oct 2016 12:35]
MySQL Verification Team
Hello Masood, This is the same problem as found in Bug #78651 i.e Primary key on id chosen instead of composite index on game_id and another one column and thus which leads to processing more rows than needed and wrong EXPLAIN output. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Also, please try with latest GA build as 5.6.10 is very old and since then many bugs fixed. Thanks, Umesh
[20 Oct 2016 12:50]
masood alam
Hello, Thanks for your reply. If you consider this as a duplicate then its great, at least I am assured of the fact that you already know of this. Secondly I have tried with MYSQL 5.6.34 and I have also tried with MYSQL 5.7.16, in all of my tests the result is the same. The fact that it even appears in MYSQL 5.7 tells me that the optimiser bug was carried forward to newer MYSQL 5.7 Thanks Masood