[MDEV-24992] MariaDB on CentOS 7 much slower than MySQL Created: 2021-02-26 Updated: 2021-03-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.4.18 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Stan Stan | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | performance | ||
| Environment: |
CentOS 7 (CentOS Linux release 7.9.2009 (Core)) |
||
| Attachments: |
|
| Description |
|
The query below is much slower on MariaDB than on MySQL. Tested on two independent CentOS 7 machines and 3 MariaDB versions 10.4.18, 10.4.17and 10.4.14.:
MariaDB CentOS 7: MySQL: Also tested on MariaDB 10.2.32 on openSUSE Leap 15.1: Interestingly, when I add e.entity_id < 4564 condition, there is a breakpoint before the query takes 0 seconds and after 4 seconds, depending on the number. But this number depends on system. On my system, the value was 4564 where the query already took 4 seconds, but it took 0 seconds with 4563. Database dump is attached. |