[MDEV-25308] MyISAM converting to Aria and back becomes 2 times slower! Created: 2021-03-31 Updated: 2021-04-20 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - MyISAM |
| Affects Version/s: | 10.3, 10.4, 10.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Oli Sennhauser | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | MyISAM, regression-10.3, regression-10.4, regression-10.5 | ||
| Environment: |
Ubuntun 18.04, n.a. |
||
| Description |
|
We had some significant query slow downs after upgrading from MariaDB 10.2 to 10.5. After some testing around we found at least one issue: If we convert MyISAM tables to Aria and the back to MySAM queries on those tables are significantly slower (about factor 2) as they were before! This behaviour can be reverted by dumping the MyISAM tables and restore them. The MyISAM file size dit not chang significantly. This phenomena did NOT happen in 10.2 but started in 10.3 and continued in 10.4 and 10.5 We can provide a complete test case with results: refer to: wf/test_dump.sql.gz
Query execution plan was always the same in all tests 10.2.29 7.32 s MyISAM/MyISAM 10.3.20 7.38 s MyISAM/MyISAM 10.4.13 7.88 s MyISAM/MyISAM 10.5.9 7.38 s MyISAM/MyISAM converting to aria and back to myisam 10.2 7.87 s 10.3 13.25 s 10.4 14.01 s 10.5 13.71 s I do NOT believe that it is related to the partitions we used. But further investigation has to be done in this field... |
| Comments |
| Comment by Oli Sennhauser [ 2021-03-31 ] |
|
non partitioned MyISAM tables did not make any difference: 10.2 8.07 s 10.3 14.60 s 10.4 15.09 s 10.5 14.36 s |
| Comment by Sergei Golubchik [ 2021-03-31 ] |
|
Just to clarify:
|
| Comment by Oli Sennhauser [ 2021-03-31 ] |
|
Exactly. But last test shows that it is NOT related to partitions but MyISAM only. I tested it twice because I first was not sure that this can be true. |
| Comment by Sergei Golubchik [ 2021-04-01 ] |
|
Yes, please. This sounds very unusual, that ALTER TABLE to aria and back changes myisam table that way. |
| Comment by Oli Sennhauser [ 2021-04-01 ] |
|
ftp ftp.askmonty.org/private https://mariadb.com/kb/en/mariadb-community-bug-reporting/ It is more than 10M |
| Comment by Sergei Golubchik [ 2021-04-05 ] |
|
worked for me. May be your ftp client only expects a hostname, and ftp.askmonty.org/private is not a valid hostname? Try simply |
| Comment by Oli Sennhauser [ 2021-04-06 ] |
|
Hmmm. Either it is fixed now or I was too tired... Now it works. |