learning-unlimited/ESP-Website — pull request #205 by aseering (2011-12-15 05:43:26+00:00)
Title: Dashboard performance tweaks

This code has a whole bunch of various changes to how the Dashboard gets its data.

Most of them aim to reduce the number of queries; replacing queries in a loop with singe more-complicated queries.

My goal here wasn't a complete performance-optimization of the dashboard; I was just trying to get a whole bunch of low-hanging fruit. I think more optimization would be a quite-reasonable goal for a future release.