-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Poor performance for some layered navigation queries #20969
Comments
Hi @k4emic. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @k4emic do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
Next steps are available in case you are a member of Quality Maintainers or Open Source Maintainers
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
I can't say entirely for sure that the above steps will make this problem reproducible for everyone, since the sql query optimizer seems to have a mind of its own, so I'll break down the technical details and discovery.
Tehcnical information
We initially discovered this after creating a new boolean attribute and making it filterable (see #3283). Shortly after deployment to an internal test-server, we began seeing the database workers eating a lot of CPU.
SHOW FULL PROCESSLIST
hinted at this query being the problem:We identified the slow part being the following:
Fetching 500 rows takes several seconds
Modifying the
main_table.attribute_id = '565'
tomain_table.attribute_id = 565
gave a significant performance-boost.I could be missing something, but I think the conclusion here is that the sql query optimizer isn't working properly when a string is being provided in a
WHERE
clause, for a anint
column.Magento 1 has also been plagued by similar problems:
The text was updated successfully, but these errors were encountered: