Bug #109170 | Setting index_merge_sort_union=off also disables other index merge plans | ||
---|---|---|---|
Submitted: | 22 Nov 2022 19:45 | Modified: | 25 Apr 2023 6:34 |
Reporter: | Manuel Ung | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 8.0.31 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[22 Nov 2022 19:45]
Manuel Ung
[23 Nov 2022 4:38]
MySQL Verification Team
Hello Manuel Ung, Thank you for the report and feedback. regards, Umesh
[25 Apr 2023 6:26]
Nimita Joshi
This is a duplicate of Bug #109169
[25 Apr 2023 6:34]
Manuel Ung
Can you explain how this is a duplicate? The other bug is about costing. This bug is about optimizer_switch being broken.
[25 Apr 2023 8:54]
Nimita Joshi
In this test case, after turning off index_merge_sort_union=off, it fell back to full table scan because as explained in case of bug 109169, existing range scan was used which consisted of "non- ror scans" to find out if "ror-union" can be done. Since all best range scans were not "ror-scans", "ror-union" scan could not be done and if went for a full table scan. So this bug is a side effect of Bug#109169.