-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: 5.2.2 Variant entry field hangs up MySQL Server #3758
Comments
Issue has been verified on multiple development, staging and production environments and there is nothing in the logs. |
@apitel a few questions:
Assuming you still have the issue after that, and it's reproducible in different environments, can you send a database dump, your composer.json/lock files, and some steps to reproduce what you see to [email protected]? We can dig in further from there. |
…-entry-field-hangs-up-mysql-server Fixed #3758 variant query performance
Hi All Thank you for all the information provided and your patience on this issue. We believe we have identified the cause of this issue and have pushed up a fix which will be included in the next release of Commerce. To get this early, change your "require": {
"craftcms/commerce": "5.x-dev as 5.2.2.1",
"...": "..."
} Then run If you have a chance to try this out before the release and let us know if it solves the issue that would be fantastic. Thanks |
We reinstalled the vendor directory with this new dev version of Craft Commerce. All other plugins have been disabled. We did not see any resolution. We are still experiencing the same issue as reported. |
If we move with the same latest db for 5.2.2.1, but use old commerce version "5.1.3" then the field works. We then stepped through the various versions to see when the problem was introduced using a 5.x-dev database. Our results are as follow: 5.1.3 ✅ |
Hi @apitel We have pushed further updates for this issue into the just released Commerce Could you please try updating to this version and let us know if it makes any difference to your project? We have had reports from others that this update has made a significant improvement. Thanks! |
We've deployed the latest version of Craft Commerce I think this issue is distinct from the variant performance issues and was introduced in 5.2.2. |
What happened?
Description
After upgrading to Craft Commerce 5.2.2 (and subsequently 5.2.2.1), we are noticing a major slowdown in Variant Queries, bringing MySQL to its knees. We have a variant select field in an entry, that, upon clicking, sends MySQL CPU usage to 100% continuously.
Issue does not occur with any other area of Craft and did not occur before upgrading to 5.2.2 (other than ~ 3x variant query slowdown from Craft 4 previously reported). Issue does not occur when adding an item to an order in CP.
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
Craft Pro 5.4.10.1
Craft Commerce version
5.2.2.1
PHP version
8.3.13
Operating system and version
Linux 5.15.0-124-generic
Database type and version
MySQL 8.0.39
Image driver and version
GD 8.3.13
Installed plugins and versions
The text was updated successfully, but these errors were encountered: