Partial revert of pull/12559
authoreileen <emcnaughton@wikimedia.org>
Thu, 20 Sep 2018 06:28:10 +0000 (18:28 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 20 Sep 2018 06:28:10 +0000 (18:28 +1200)
commit550e5b1a088c980f1110e245f5646b2b4767d574
tree70c17795f837f16c0552f30f95baaabee967b3f1
parent2b7ca1d41928f64a1c8d39cb7bc2b38372b4b8f8
Partial revert of pull/12559

https://github.com/civicrm/civicrm-core/pull/12559/files is currently in RC.

While we find that this change improves performance and we are running it in production
we have identified that performance is very poor in the specific scenario where only
email is linked to 39000 assignees - in this case it was an old experimental civimail
activity. In the interests of prudence I am reverting the parts that switch function
in the rc.
CRM/Activity/BAO/Activity.php
CRM/Activity/Selector/Activity.php