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

Improved global search performance by using only prefix matching. #1596

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

colinmollenhour
Copy link
Member

This removes the postcode search (with a large store searching by postcode will be useless) and uses only prefix match for catalog search.

I don't have a large instance handy to test with, if someone does and can profile the database queries to identify which ones are slow and provide an "explain" that would be helpful.

Refs #134

@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml Component: CatalogSearch Relates to Mage_CatalogSearch labels May 4, 2021
kkrieger85
kkrieger85 previously approved these changes May 12, 2021
@fballiano
Copy link
Contributor

fixed conflicts

@colinmollenhour
Copy link
Member Author

Thanks for fixing conflicts but it looks like it restored the two postcode lines that were intended to be removed.

@fballiano
Copy link
Contributor

so sorry, should have fixed it now :-(

@colinmollenhour colinmollenhour changed the base branch from 1.9.4.x to main April 4, 2023 17:09
@colinmollenhour colinmollenhour added the Rebased: RFC-0002 This PR has been rebased onto either 'main' or 'next' according to RFC-0002 label Apr 4, 2023
@fballiano fballiano changed the title Improve global search performance by using only prefix matching. Improved global search performance by using only prefix matching. Apr 5, 2023
@fballiano fballiano merged commit 6851e17 into OpenMage:main Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: CatalogSearch Relates to Mage_CatalogSearch Rebased: RFC-0002 This PR has been rebased onto either 'main' or 'next' according to RFC-0002
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants