[MDEV-11574] Queries with IN clauses that are pushing the optimizer to its limit Created: 2016-12-14 Updated: 2020-08-25 Resolved: 2017-10-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.0.33, 10.1.29, 10.2.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Consider a table
and a query in form
The query
The reason seems to be that MariaDB's optimizer is trying to construct index_merge access plans which are not particularly meaningful ( adding ignore index (adgroupid) resolves the issue). |
| Comments |
| Comment by Sergei Petrunia [ 2016-12-14 ] | ||||||||||||||||||||||||||||||||
Questions:
On, in the simplified file:
What is the point of building a 3-way index_merge when there are only two indexes? | ||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2017-09-22 ] | ||||||||||||||||||||||||||||||||
|
Julien, | ||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2017-10-18 ] | ||||||||||||||||||||||||||||||||
|
A fix for this bug was pushed into the 10.0 tree. | ||||||||||||||||||||||||||||||||
| Comment by Julien Fritsch [ 2017-10-18 ] | ||||||||||||||||||||||||||||||||
|
igor the fixVersion is 10.0.31, but this one has been released in May is that normal ? |