disable explain in Rails 3.2

前端 未结 3 525
天命终不由人
天命终不由人 2021-02-04 07:42

Is it possible to disable the new the explain functionality in Rails 3.2 globally via configuration? I\'m using activerecord-sqlserver-adapter 3.2.1 and there appear to be some

3条回答
  •  长发绾君心
    2021-02-04 08:45

    You can disable auto-explain by setting config.active_record.auto_explain_threshold_in_seconds = nil in your config/environments/development.rb

提交回复
热议问题