-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Further removal of instance of using LOWER() rather than relying on mysql non-case-sensitivity. #12612
Conversation
(Standard links)
|
test this please |
CRM/Contact/BAO/Query.php
Outdated
@@ -2253,6 +2255,7 @@ public function restWhere(&$values) { | |||
); | |||
} | |||
elseif ($name === 'addressee') { | |||
CRM_Core_Error::deprecatedFunctionWarning('pass in addressee_id or ddressee_display'); |
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.
typo in "ddressee_display"
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.
yeah - but probably no-one will ever see that notice again until they go to remove the code....
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.
@colemanw ok - fixed
553a5bc
to
884e1ee
Compare
test this please |
@monishdeb @seamuslee001 @lcdservices @colemanw this passed - am wondering if anyone else can figure out a way to hit these deprecation notices or whether it's truly dead code. I think this is mergeable as we have proven the concept of removing 'LOWER' we are just actioning it conservatively |
opps I can see a comment to remove - that will trigger tests again :-( |
…ysql non-case-sensitivity. Note I could not find any way to call this so I added deprecation notices Per civicrm#12494 the use of LOWER hurts performance fails to return results on some char sets messes with REGEX This is part of a continued (we removed from contribution search fields last year) staggered approach to removing this old mechanism
884e1ee
to
b7aa36b
Compare
Overview
This is part of a phased process of removing LOWER from core mysql queries. So far we are only aware of downsides to using it but out of cautiousness are removing it slowly over releases
Before
Calls to filter on email_greeting, postal_greeting, address have LOWER applied (resulting in unindexed searches)
After
LOWER not applied, mysql case insensitive search relied on
Technical Details
Per #12494 & # 12503 the use of LOWER
hurts performance
fails to return results on some char sets
messes with REGEX
This is part of a continued (we removed from contribution search fields last year)
staggered approach to removing this old mechanism
Comments
Note I could not find any way to hit this line of code so I added deprecation notices. I looked in advanced search, search builder, api explorer & I created a search profile per the screen shot