[MDEV-29662] same values in `IN` set vs equal comparison produces the different performance Created: 2022-09-28 Updated: 2022-12-29 Resolved: 2022-10-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.6.11, 10.7.7, 10.8.6, 10.9.4, 10.10.2, 10.11.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Allen Lee (Inactive) | Assignee: | Oleg Smirnov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OS: RHEL8.5 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
The following query returns a different execution plan and a significantly different execution time. The following repro is exactly same as the initial bug report in MENT.
|
| Comments |
| Comment by Sergei Petrunia [ 2022-10-25 ] |
|
Review input provided on slack and on a call. |
| Comment by Oleg Smirnov [ 2022-10-26 ] |
|
Pushed to 10.6. |
| Comment by Oleksandr Byelkin [ 2022-10-28 ] |
|
The problem was mix of temporary and permanent changes in the conditions: 1. we make copy of condition for future use in the statement memory which include creating the list of AND arguments see |