-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Fix slow url_rewrite query on MySQL 5.7 #303
Conversation
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.
Looking at the changes in context, I see no chance of this breaking anything. I cannot speak to what difference you see in performance though.
I'm planning to test that next days |
What about 3rd party modules for SEO like Mageworx SEO Ultimate, will it brake anything if they rewrite urls? |
If you read the code, it's joining the category entries to the url rewrite table based on the category_id field of the rewrite table. This added WHERE clause is just an optimization to exclude records that wouldn't be joined anyway. |
@tomekjordan I don't expect this to be breaking however |
any news on that? in which version is this fixed? |
While I approve of the change in principle, there is no proof provided that it doesn't break anything and I don't have time to test it thoroughly myself, so perhaps if someone could test it in some capacity and report back that would help get this merged. We really need some unit tests... 😕 |
@colinmollenhour thanks for your quick reply. |
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
Thanks allot for that fix |
Thanks a lot from my side too! I had a 7 s load after adding a second web-site to one of our magento installations. When I tested it locally after switching to magento_lts loading time dropped to 0.32s! |
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
…_Category_Url_Rewrite Fixes: OpenMage#295
Fixes: #295