ruby - Re-enable Rails 4 auto-EXPLAIN -
automatic explain on slow-running sql queries. feature has been removed rails 4.
config.active_record.auto_explain_threshold_in_seconds = 0.5
we find useful, in controlled circumstances. came short in searching answers following questions.
what underlying rationale removing auto-explain?
(i'm sure reasons sound, can't find are.)is there way reintroduce auto-explain in rails 4 codebase?
(couldn't find gem, nor online information)
here commit removed auto_explain
. looks reasoning used , problematic w/ asset pipeline. commit notes can still use activerecord::relation#explain
generate explain queries, if want have automatically called have implement yourself. looking on removed code in commit should on right path.
Comments
Post a Comment