Automatic EXPLAIN on slow-running SQL queries. This feature has been removed from Rails 4.
config.active_record.auto_explain_threshold_in_seconds = 0.5
We find it useful, in controlled circumstances. I came up short in searching for answers to the following questions.
What was the underlying rationale for removing auto-EXPLAIN?
(I'm sure the reasons are sound, but I can't find what they are.)Is there a way to reintroduce auto-EXPLAIN in my Rails 4 codebase?
(Couldn't find a gem, nor any online information)