Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve performance of the Last Campaign widget #80
As reported at https://mantis.phplist.org/view.php?id=19730 the query to get statistics for the last campaign performs badly under some conditions (seems to be large number of rows in the message or usermessage tables).
This change is to use the id of the last campaign in the main queries that get the campaign statistics.
I have tested this change as a super-admin and as an ordinary admin, both of which returned the same result as before the change. Also tested when there is no latest campaign.