{"ref":"refs/heads/master","push_id":55018276,"commits":[{"sha":"ee63200f89d8dc593b5787608237196e06b7355f","author":{"email":"711c73f64afdce07b7e38039a96d2224209e9a6c@seagul.co.uk","name":"Chris Roos"},"url":"https://api.github.com/repos/alphagov/whitehall/commits/ee63200f89d8dc593b5787608237196e06b7355f","message":"Avoid n+1 queries on /publications."},{"sha":"a1c98ca6d4b1face2c548f315ecbf681165730bc","author":{"email":"711c73f64afdce07b7e38039a96d2224209e9a6c@seagul.co.uk","name":"Chris Roos"},"url":"https://api.github.com/repos/alphagov/whitehall/commits/a1c98ca6d4b1face2c548f315ecbf681165730bc","message":"Avoid n+1 queries on /ministers"},{"sha":"f7b2fc22a3cf947b2412117f6d75f510b84c41c8","author":{"email":"711c73f64afdce07b7e38039a96d2224209e9a6c@seagul.co.uk","name":"Chris Roos"},"url":"https://api.github.com/repos/alphagov/whitehall/commits/f7b2fc22a3cf947b2412117f6d75f510b84c41c8","message":"Avoid n+1 queries on /consultations.\n\nI narrowed down the relationships that needed to be included by\nmonitoring the development log file while making the relevant changes in\nthe controller.\n\nI've added mock tests that will fail fast if the things that are\nincluded change. That's not to say that the inclusions shouldn't change,\njust that it should be a conscious decision if they do.\n\nThe tests won't prevent us introducing more n+1 queries in future."}],"head":"f7b2fc22a3cf947b2412117f6d75f510b84c41c8","size":3}