One of the biggest performance problems with this application is accessing specific statistics from the very large (over 1.8 million records) statistics table. Back-of-the-envelope math says that currently at least 3% of these records are for closed schools and are irrelevant to the main purpose of this application. This data could be retained for use with other projects but removed from the statistics table by being moved to a new closed_statistics table. This will (theoretically) result in a small increase in lookup speed, which will get larger as the number of closed schools increases.
One of the biggest performance problems with this application is accessing specific statistics from the very large (over 1.8 million records)
statisticstable. Back-of-the-envelope math says that currently at least 3% of these records are for closed schools and are irrelevant to the main purpose of this application. This data could be retained for use with other projects but removed from thestatisticstable by being moved to a newclosed_statisticstable. This will (theoretically) result in a small increase in lookup speed, which will get larger as the number of closed schools increases.statisticstable into a newclosed_statisticstableclosed_statisticstable as part of theimport-closurescommandcheck-statssearch for stats in the wrong table (closed or open)