-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Bad performance in Magento_Review module #39761
Comments
Hi @oskar-olaussen. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @oskar-olaussen, Thanks for your reporting and collaboration. We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screenshots. ![]() There is not a massive amount of database querys. Kindly recheck the issue in latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible. Thanks. |
Preconditions and environment
Steps to reproduce
1 .Navigate to the product page
2. Open the review tab.
Expected result
There is not a massive amount of database querys.
Actual result
There are at least as many database querys as there are reviews.
This function is called https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Review/Model/ResourceModel/Review/Collection.php#L237 and it querys the database for ratings in side a loop as many times as there are ratings for the product.
This causes a noticable performance impact for our client. They have products with hundreds of reviews.
Additional information
Maybe load all of the ratings from the database at once?
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: