aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-02-24 18:59:34 +0100
committerYves Senn <yves.senn@gmail.com>2013-02-24 20:01:04 +0100
commitd3688e02ca52c0b72d3092e8498da51e06b7fc58 (patch)
tree7b41894f42e908dbed53c664f55e8fb3961e1b3c /activerecord/CHANGELOG.md
parent5fc3b87c93edf770ea0d6b52a28ea225183dbfd7 (diff)
downloadrails-d3688e02ca52c0b72d3092e8498da51e06b7fc58.tar.gz
rails-d3688e02ca52c0b72d3092e8498da51e06b7fc58.tar.bz2
rails-d3688e02ca52c0b72d3092e8498da51e06b7fc58.zip
remove AR auto-explain (config.auto_explain_threshold_in_seconds)
We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 8e51fdf199..e6c969940f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 4.0.0 (unreleased) ##
+* The auto explain feature has been removed. This feature was
+ activated by configuring `config.active_record.auto_explain_threshold_in_seconds`.
+ The configuration option was deprecated and has no more effect.
+
+ You can still use `ActiveRecord::Relation#explain` to see the EXPLAIN output for
+ any given relation.
+
+ *Yves Senn*
+
* The `:on` option for `after_commit` and `after_rollback` now
accepts an Array of actions.
Fixes #988.