简体   繁体   中英

Rails 3.1.2 running very very slow. Seemingly a mysql2 ActiveRecord development mode issue

It seems the app is coming to a grinding halt in development mode in Rails 3.1.2. I'm using mysql database and am NOT using asset pipelines. Even the tests are running very very slowly.

It's almost 20 times slower than Rails 3.1.1!

Running in production mode is okay though. I'm using thin as my development server and I've got 8Gb RAM on my MBP. It's not my machine cos my other Rails apps are hunky dory.The only change that seems to be causing it is Rails 3.1.2 upgrade. And downgrading seems to bring the speed back up!

Any clues as to what might be the reason or should we just expect Rails 3.1.3?

通过将Rails更新到下一个补丁级别来解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM