我的Rails 2.3.2 APP中的SHOW TABLES令人討厭的問題 - 它會讓我的APP變得非常緩慢。問題是,如何擺脫SHOW TABLES的用法以及它在Rails框架中的用處?從APP日誌中我可以看到它一直在使用。Rails 2.3.2和SHOW TABLES
謝謝!
配置/環境/ production.rb:
config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
同樣的問題進行生產。查詢大約爲12.5 ms或更多。它每次動作有時會拍攝4-5次。 – thesis
它是每張桌子拍攝的。你的config/environments/production.rb代碼是什麼? – Anatoly
您可以檢查生產服務器上的環境是什麼,用於服務應用程序的是什麼?該文件是否爲空**/log/production.log **? – Anatoly