The rather frustrating part is that most of the time is being spent in rendering views. Here are few examples.
- Completed 200 OK in 272ms (Views: 236.9ms | ActiveRecord: 15.7ms)
- Completed 200 OK in 275ms (Views: 148.2ms | ActiveRecord: 42.6ms)
- Completed 200 OK in 384ms (Views: 335.1ms | ActiveRecord: 3.5ms)
I am not doing partials in a loop etc. I am NOT querying while rendering either. Its just ruby hash operations etc which are taking up lot of ms. Now I am starting to wonder is how many SQL queries is considered normal, like in my app its around 4 - 10 queries. Is 300ms+ an acceptable response time for a Rails app which is not even launched yet (so no server load as of now). Hosted on $20 VPS Linode.
Thanks in advance for sharing your insights.