I couldn't get it to pull in the summary object for each server on the front page query without major performance problems. So I pulled in the one field that I needed from summaries up into the server collection -- the generated_at field. This is something that we are already doing with percent_passing, so I'm not adding any addition overhead/complexity that isn't already in there. We just need to run the new rake task in production once to copy up the data so that the date sort works properly without having to rerun all servers.
I couldn't get it to pull in the summary object for each server on the front page query without major performance problems. So I pulled in the one field that I needed from summaries up into the server collection -- the generated_at field. This is something that we are already doing with percent_passing, so I'm not adding any addition overhead/complexity that isn't already in there. We just need to run the new rake task in production once to copy up the data so that the date sort works properly without having to rerun all servers.