[MDEV-9589] Optimizer doesn't remove unneeded joins resulting in unneccesary long querytime Created: 2016-02-19 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1.11 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | sjon | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | optimizer | ||
| Environment: |
Archlinux |
||
| Description |
|
Our application generates a query which contains a significant amount of joins that the optimizer is able to successfully transform to a relatively simple query. However, this query (still) takes a very long time to complete. It seems to me the optimizer could do better. I've created a simple testcase that reproduces the issue (based on the query the optimizer created):
and the query:
|