引用http://weblog.rubyonrails.org/2011/12/6/what-s-new-in-edge-rails-
explain/
新的应用程序得到
config.active_record.auto_explain_threshold_in_seconds = 0.5在
config/environments/development.rb。Active
Record监视查询,如果查询所用的阈值超过该阈值,则会使用警告记录其查询计划。[…]
默认情况下,阈值
nil处于测试和生产环境中,这意味着该功能已禁用。
所以就设定
config.active_record.auto_explain_threshold_in_seconds = nil



