ActiveRecord automatically runs EXPLAIN query to detect slow running queries. development
environments get the following configuration. For any query that takes more than 0.5 seconds, it automatically runs EXPLAIN query.
config.active_record.auto_explain_threshold_in_seconds = 0.5
You can disable it by setting it to nil
config.active_record.auto_explain_threshold_in_seconds = nil