disable explain in Rails 3.2

前端 未结 3 514
天命终不由人
天命终不由人 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:42

    You should note that config.auto_explain_threshold_in_seconds has been completely removed in Rails 4.0 & 4.1. In 4.1 it will throw a full error.

    See https://github.com/rails/rails/pull/9400/files

    If you upgrade, comment that line out.

提交回复
热议问题