Bug #106452 | Very long upgrade time MySQL from 5.7 to 8.0, both FreeBSD and Ubuntu GNU/Linux | ||
---|---|---|---|
Submitted: | 14 Feb 2022 10:53 | Modified: | 21 Apr 2022 7:08 |
Reporter: | Ludvig Beethoven | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S5 (Performance) |
Version: | 8.0 | OS: | FreeBSD |
Assigned to: | CPU Architecture: | x86 |
[14 Feb 2022 10:53]
Ludvig Beethoven
[14 Feb 2022 12:18]
Rahul Sisondia
Upgrade operation is single threaded at the moment. There are many low hanging fruits with them upgrade time could be reduced drastically.
[14 Feb 2022 14:24]
MySQL Verification Team
Hi Mr. van Beethoven, Thank you for your performance improvement report. However, what you propose is not doable when you upgrade from 5.7 to 8.0. Multi-threaded performance for this upgrade is not worth the effort, as there are so many locks that are held during the upgrade to the data dictionary system that is the basis for the version 8.0. The only way to get multi-threaded performance is to use mysqlpump program to dump all the schemas, except for mysql. Then, to upgrade to 8.0 and restore all schema with parallel processes. Not a bug.
[21 Apr 2022 7:08]
Ludvig Beethoven
As of versions 8.0.27 and 8.0.28 this issue no longer occurs and actualization of the same data takes only 7 minutes.
[27 Apr 2022 12:40]
MySQL Verification Team
Hi Mr. Beethoven, Thank you for your feedback.