aboutsummaryrefslogtreecommitdiffstats
path: root/lib/attachment_to_html/attachment_to_html.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-04-21 12:49:59 +0100
committerGareth Rees <gareth@mysociety.org>2015-04-27 16:17:11 +0100
commit5cbf0836c049d5b9039fefb64a39e81aa8eb6b5e (patch)
tree4aa330a71074ec705ff3c1db05e85e1990ca930e /lib/attachment_to_html/attachment_to_html.rb
parenta960380f1a6aa2b2aacfa726adc41a09ea89f1d0 (diff)
Reduce N+1 queries in RequestGameController#play
Eliminates the following Bullet warnings: 2015-04-21 11:42:26[WARN] /categorise/play N+1 Query detected user: vagrant InfoRequest => [:public_body] Add to your finder: :includes => [:public_body] N+1 Query method call stack /home/vagrant/alaveteli/app/views/request/_request_listing_single.html.erb:16:in `_app_views_request__request_listing_single_html_erb__949797960_70091194573720' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:46:in `_app_views_request_game_play_html_erb___279307748_70091194720080' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `each' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `_app_views_request_game_play_html_erb___279307748_70091194720080' /home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in `record_memory' /home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in `call' 2015-04-21 11:42:26[WARN] /categorise/play N+1 Query detected user: vagrant InfoRequest => [:user] Add to your finder: :includes => [:user] N+1 Query method call stack /home/vagrant/alaveteli/app/views/request/_request_listing_single.html.erb:17:in `_app_views_request__request_listing_single_html_erb__949797960_70091194573720' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:46:in `_app_views_request_game_play_html_erb___279307748_70091194720080' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `each' /home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `_app_views_request_game_play_html_erb___279307748_70091194720080' /home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in `record_memory' /home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in `call'
Diffstat (limited to 'lib/attachment_to_html/attachment_to_html.rb')
0 files changed, 0 insertions, 0 deletions