Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm trying to understand this line in the rails log

If my views only took 50.9ms why is it taking 652ms?

Thanks

like image 932
AnApprentice Avatar asked Sep 21 '11 02:09

AnApprentice


1 Answers

If you're running your application in the development environment it has to reload a lot of your application's files on every request. That would be my guess as to why it's taking so long.

You could try going into environments/development.rb and setting config.cache_classes = true to see what kind of effect this has on your render times, but remember to change this back to config.cache_classes = false and restart your server once you're done.

like image 121
sausman Avatar answered Sep 28 '22 11:09

sausman