2013-02-19 61 views
0

解釋開發模式命令如何禁用運行在開發模式解釋命令Rails3中如何禁用運行在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 
+0

http://stackoverflow.com/questions/9777203/disable-explain-in-rails-3-2 – house9 2013-02-19 05:57:02

回答

4

根據這一guide,設置config.active_record.auto_explain_threshold_in_secondsnil將其禁用。