Bug #86205 | optimizer index using select where column in select | ||
---|---|---|---|
Submitted: | 6 May 2017 23:13 | Modified: | 9 Jun 2017 11:48 |
Reporter: | mohamed atef | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.6/5.7 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | improper index using |
[6 May 2017 23:13]
mohamed atef
[6 May 2017 23:14]
mohamed atef
mysql 5.7.18 before and after update rows explain select
Attachment: 5.7.18 explain.html (text/html), 2.32 KiB.
[6 May 2017 23:15]
mohamed atef
explain in mysql 5.7.17 after update
Attachment: 5.7.17 explain after update.html (text/html), 1.77 KiB.
[7 May 2017 2:05]
MySQL Verification Team
Thank you for the bug report. 5.5/8.0 (return 2 rows) behaves different than 5.6/5.7 (return 3 rows).
[9 May 2017 11:48]
Øystein Grøvlen
Posted by developer: The query plans differ in what semijoin strategy is used. (MatLookup vs LooseScan) The choice of semijoin strategy is cost-based. If data is changed, a different strategy may be better suited. However, statistics are not updated immediately, so it may be that just after the update (and for old connections) the old plan will still be used. A specific example where it is shown that the selected plan is the wrong choice will be required if we should consider changing the current cost model. In other words, do you have any indication that either of the plans are a bad choice for the given query and data?
[10 Jun 2017 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".