aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/widgets_controller_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-01 10:01:31 +0100
committerGareth Rees <gareth@mysociety.org>2015-05-07 15:53:14 +0100
commit8068b389a0c3118eeb13148021bd064b9226a9e3 (patch)
tree3c297810990bad9b6eddeba12c68d21fa1134907 /spec/controllers/widgets_controller_spec.rb
parent730f8c6affd5d847323bb78770cfca443ae6890f (diff)
Reduce N+1 queries getting holding pen requests
Removes the following bullet warning: N+1 Query detected IncomingMessage => [:raw_email] Add to your finder: :includes => [:raw_email] N+1 Query method call stack /home/vagrant/alaveteli/app/models/incoming_message.rb:115:in `parse_raw_email!' /home/vagrant/alaveteli/app/models/incoming_message.rb:150:in `sent_at' /home/vagrant/alaveteli/app/views/admin_general/index.html.erb:54:in `_app_views_admin_general_index_html_erb___48164640_70115534664600' /home/vagrant/alaveteli/app/views/admin_general/index.html.erb:42:in `_app_views_admin_general_index_html_erb___48164640_70115534664600' /home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in `record_memory' /home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in `call' Improved view rendering times: Before: Completed 200 OK in 2813.9ms (Views: 1697.3ms | ActiveRecord: 9.5ms) Completed 200 OK in 2548.6ms (Views: 1838.2ms | ActiveRecord: 8.2ms) After: Completed 200 OK in 2185.9ms (Views: 276.0ms | ActiveRecord: 7.5ms) Completed 200 OK in 2216.3ms (Views: 100.3ms | ActiveRecord: 7.6ms)
Diffstat (limited to 'spec/controllers/widgets_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions