dev/core#518 Fix lybunt performance
authoreileen <emcnaughton@wikimedia.org>
Wed, 14 Nov 2018 03:27:30 +0000 (16:27 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 20 Nov 2018 02:23:46 +0000 (15:23 +1300)
commit1679e19cec0e220e83e8bd069db0070b165ce854
treea184f43ca5da7f1e0cc78b3fc73675fb5d4bd38d
parenta20a6ba4858b4c49c8cd9f75904e1b288a54b077
dev/core#518 Fix lybunt performance

Per analysis on the issue this gave me a substantial performance
increase (from nearly 7 minutes down to less than a quarter of a second)
when performing a lybunt report on a small group wihtin a large database.

In testing this patch we went from WSOD of death to nearly instant responsiveness.

I tried the query unfiltered (ie. against our whole DB) and it performed well
although not well enough I would want our users to run it on prod (~12 minutes)
- so I feel comfortable this doesn't regress performance when a group filter is
NOT in play
CRM/Report/Form/Contribute/Lybunt.php
tests/phpunit/api/v3/ReportTemplateTest.php