[MDEV-15445] Server selecting the wrong index Created: 2018-03-01 Updated: 2019-10-17 Resolved: 2019-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oren Bissick (Inactive) | Assignee: | Alice Sherepa |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Galera Cluster running on CentOS 7 virtual machines. |
||
| Attachments: |
|
| Description |
|
I created an compound index with use_id and asd_date_start. Theres also a index for use_id, which i removed later on since its redundant. The issue is that after i created the compound index i did a explain and the result was that it would use the compound index. When the query ran it did not use the compound index, it used the single index on use_id. Indices: Query: |
| Comments |
| Comment by Alice Sherepa [ 2018-03-06 ] | |||
|
Please add output of:
and attach your .cnf file(s) | |||
| Comment by Alice Sherepa [ 2018-03-08 ] | |||
|
Hi Oren, |