Eileen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/252471

Change subject: Fix slow search on email - remove wildcard
......................................................................

Fix slow search on email - remove wildcard

Note that this and the trxn_id commit are only intended as temporary 'wmf-only' 
fixes and
I intend to work with core on a more stable approach (which is probably about 
honouring an
existing search setting or adding a new one

Change-Id: Ib2867d16e133d71ceff39e5ee1901c09d605f35f
But: T114792
---
M CRM/Contact/BAO/Query.php
1 file changed, 0 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/civicrm-core 
refs/changes/71/252471/1

diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php
index 6f1798a..e96a9a5 100644
--- a/CRM/Contact/BAO/Query.php
+++ b/CRM/Contact/BAO/Query.php
@@ -1634,12 +1634,6 @@
       $likeNames = array('sort_name', 'email', 'note', 'display_name');
     }
 
-    // email comes in via advanced search
-    // so use wildcard always
-    if ($id == 'email') {
-      $wildcard = 1;
-    }
-
     if (!$useEquals && in_array($id, $likeNames)) {
       $result = array($id, 'LIKE', $values, 0, 1);
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/252471
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2867d16e133d71ceff39e5ee1901c09d605f35f
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/civicrm-core
Gerrit-Branch: master
Gerrit-Owner: Eileen <emcnaugh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to