Skip to content
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

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

tmotyl
Copy link
Contributor

@tmotyl tmotyl commented Jul 17, 2017

Fixes: #295

Copy link
Contributor

@LeeSaferite LeeSaferite left a 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.

@tmotyl
Copy link
Contributor Author

tmotyl commented Jul 17, 2017

I'm planning to test that next days

@tomekjordan
Copy link

What about 3rd party modules for SEO like Mageworx SEO Ultimate, will it brake anything if they rewrite urls?

@LeeSaferite
Copy link
Contributor

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.

@tmotyl
Copy link
Contributor Author

tmotyl commented Jul 17, 2017

@tomekjordan I don't expect this to be breaking however
I'm not using this module for 100%, so can't tell.
If you have access to this module, please test the patch and let us know.

@darnux
Copy link

darnux commented Nov 7, 2017

any news on that? in which version is this fixed?

@colinmollenhour
Copy link
Member

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... 😕

@darnux
Copy link

darnux commented Nov 8, 2017

@colinmollenhour thanks for your quick reply.
I am working for a webhosting company and we are using this fix in production for several projects (about 5-10) at the moment due to the need of MySQL 5.7.
We did not notice any negative impact on this by now.

@colinmollenhour colinmollenhour merged commit f633017 into OpenMage:1.9.3.x Nov 8, 2017
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Dec 6, 2017
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Dec 6, 2017
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Feb 28, 2018
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Mar 20, 2018
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Jul 17, 2018
@BassemN
Copy link

BassemN commented Aug 8, 2018

Thanks allot for that fix

@OpenMage OpenMage locked as resolved and limited conversation to collaborators Aug 10, 2018
@OpenMage OpenMage unlocked this conversation Feb 1, 2019
@wilfriedwolf
Copy link
Contributor

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!
Great!

edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Feb 14, 2019
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Apr 1, 2019
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 22, 2019
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Oct 25, 2019
@sreichel sreichel added the Component: Catalog Relates to Mage_Catalog label Jun 8, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Catalog Relates to Mage_Catalog enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants