Logs should show database time as well as render time. See if they are tracking. that is, high imaging time always implies a high database time.
There are various ways to profile rails if this is not a database problem.
Railscasts # 98 Request Profiling is old, but it is an example of what Rails has already built for such issues.
source share