Activity tab performance fix - switch to faster getActivities & getActivitiesCount
authoreileen <emcnaughton@wikimedia.org>
Tue, 5 Mar 2019 21:42:16 +0000 (10:42 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 15 Mar 2019 02:12:04 +0000 (15:12 +1300)
commit6e793248baf0ea5b37ad97a3cac42eae1ec52cdd
treef787f4a2a55d2f0b7cdff4c9c5883f3b017e4544
parent5a52625d46ec56e4eea94537bd1ad7c46c0cc5cf
Activity tab performance fix - switch to faster getActivities & getActivitiesCount

The getActivitiesCount & getActivities functions are faster & call permission hooks
but we weren't able to switch to them until we resolved some performance issues
(done) and resolved acl inconsistencies (resolved in 5.12) -we can do this now.

From a performance POV the difference is tab-crashes vs tab resolves quickly
on contacts with > 10k activities
CRM/Activity/BAO/Activity.php
CRM/Activity/Page/AJAX.php
CRM/Activity/Selector/Activity.php
CRM/Contact/BAO/Contact.php
CRM/Utils/Date.php
templates/CRM/Activity/Selector/Selector.tpl
tests/phpunit/CRM/Activity/BAO/ActivityTest.php