alphagov/transition — pull request #307 by rgarner (2014-06-06 09:45:01+00:00)
Title: Performance of hits pt1

* 30% improvement on summary (avoid counting things)
* General, smaller improvement on everything else by avoiding N+1
for each hit row by preloading the mapping for that row and its host
and site (at least N*2 fewer queries per page where N is number of hit rows).