0

How to disable running explain command in dev mode in Rails3

   User Load (615.1ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1

      EXPLAIN (604.5ms)  EXPLAIN SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1

    EXPLAIN for: SELECT  `users`.* FROM `users`  WHERE `users`.`id` = 12 LIMIT 1
Sam
  • 8,387
  • 19
  • 62
  • 97

1 Answers1

4

According to this guide, setting the config.active_record.auto_explain_threshold_in_seconds to nil will disable it.

Shane Andrade
  • 2,655
  • 17
  • 20