Completed 200 OK in 652ms (Views: 50.9ms | ActiveRecord: 18.3ms)

I am trying to understand this line in rails log

If my views took only 50.9 ms, why does it take 652 ms?

thanks

+4
source share
1 answer

If you run the application in a development environment, it must reload many application files for each request. That would be my guess about why it took so long.

You can try going to environments/development.rb and setting config.cache_classes = true to see what effect it has on the rendering time, but remember to change it to config.cache_classes = false and restart the server as soon as you are done.

+4
source

All Articles