diff options
author | Xavier Noria <fxn@hashref.com> | 2012-01-26 02:50:46 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-01-26 02:50:46 -0800 |
commit | f251437415f7b803f7a84118fcc970a111ace266 (patch) | |
tree | c4a86b401027742fe78ab6087af8ed91eb53c280 /railties/guides/source/active_record_querying.textile | |
parent | d11347df7203cb5c82caad5c9949830980e3eb6a (diff) | |
download | rails-f251437415f7b803f7a84118fcc970a111ace266.tar.gz rails-f251437415f7b803f7a84118fcc970a111ace266.tar.bz2 rails-f251437415f7b803f7a84118fcc970a111ace266.zip |
disable automatic explain if there is no logger [closes #4671]
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 84687e2e4f..8517f6fb19 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -1400,6 +1400,9 @@ A threshold of +nil+ disables automatic EXPLAINs. The default threshold in development mode is 0.5 seconds, and +nil+ in test and production modes. +INFO. Automatic EXPLAIN gets disabled if Active Record has no logger, regardless +of the value of the threshold. + h5. Disabling Automatic EXPLAIN Automatic EXPLAIN can be selectively silenced with +ActiveRecord::Base.silence_auto_explain+: |