-
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
Improve performance of "in" condition on some version of MySQl #27129
Improve performance of "in" condition on some version of MySQl #27129
Conversation
Hi @kandy. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kandy,
Your changes looks good, except one small missing space.
Due to definition of done all changes should be covered with some tests. Could you cover your changes with any type of test?
...nto/ConfigurableProduct/Model/ResourceModel/Product/Type/Configurable/Product/Collection.php
Outdated
Show resolved
Hide resolved
…ct/Type/Configurable/Product/Collection.php Co-Authored-By: Ihor Sviziev <ihor-sviziev@users.noreply.github.com>
@kandy I am closing this PR now due to inactivity. |
Hi @kandy, thank you for your contribution! |
Hi @ihor-sviziev, thank you for the review. |
✔️ QA Passed Preconditions: Magento 2.4-develop Manual testing scenario:
Before: ✖️ Indexation works very slow, freezes and does not pass... After: ✔️ Catalog Category Indexing run quickly. For 50,000 products, it took about 3 minutes. and all products were successfully indexed in about 2 minutes |
@magento run all tests |
Hi @kandy, thank you for your contribution! |
Finally it got merged! 🎉 |
Glad to see this get merged! I found 2 more instances of this in the catalog_url_rewrite module. I think the reason it wasn't in this PR is because it doesn't go through the DB/Select but instead it is about creating a temporary table. That one especially can take a long time to get it done. Here's the other one: It can be wrapped in an array_map('intval', array_merge(...)) in order to force the productids to come through as INT. There is no option to pass type along, therefore it must be forced into the Query instead. |
@Quazz feel free to create PR with your suggested changes |
When the MariaDB is try to cast the entitys_ids from string to integer is to slow, Check: #27129
Improve performance of "in" condition on some version of MySql
Description (*)
Related Pull Requests
Workaround https://jira.mariadb.org/browse/MDEV-20900
Fixed Issues (if relevant)
Manual testing scenarios (*)
see #25199
Questions or comments
Contribution checklist (*)