[MDEV-27678] Slow SELECT with two joins + where on 3rd table + group on 1st table date Created: 2022-01-29 Updated: 2022-01-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Rafał Miłecki | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
I noticed that one of my SELECT queries takes ~18 seconds. I started debugging it and prepared a minimal test case: a pretty simple SELECT over 3 tables (1500 rows in total) with 1 WHERE and 1 GROUP BY. That minimal SELECT still takes 10+ seconds. I think there may be some bug in SELECT optimization. I'm not
On MariaDB 10.4.22 used by my hosting provider it takes 13 seconds to execute about query. |
| Comments |
| Comment by Rafał Miłecki [ 2022-01-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rafał Miłecki [ 2022-01-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Workaround I found:
Takes 0.05 s to execure |