I have a form which has 4 associations and 2 javascript calls. It is taking to load minimum of 10 seconds to load,even for new form. Out of 10 seconds, Active record is taking with in 100 ms and remaining 9990ms are taking to load Views.
(In views page,i am loading tiny mice editor,autocomplete javascript libraries)
Is it possible to load a page loading 4 associations,including 2 javascript libraries in less than 3 seconds? If yes, Pleas any body help me in loading my form much faster?
Thanks in Advance,
Prem.
I would suggest you to check this http://www.railsinside.com/tutorials/230-scaling-rails-a-free-13-part-series-of-screencasts.html.
As said if you have four associations you may have to do eager_loading or may be better write sql and use find_by_sql.
Regarding javascript or view loading you may have to research minifying javascript and css.
You also need to consider using image sprites.