I have created a simple app which allows user logins and when user
a home page is shown which is built using some queries to the DB. I
caching which didnt work properly because for some reason rails kep
the old cache…Anyway What I was wondering is caching only avoids the
process but IMHO the queries are the most consuming.
My code is something like
other stuff which does db query and some biz logic to create arrays
are used in the view
render :action =>‘index’
Even though the index can be cached the code to create the user’s
related variables are recalculated?How do I avoid that?
Has anyone faced such an issue? I am thinking if storing the results in
temporary table till the session is alive is a good idea.or may be check
cache exists to avoid doing calculations,but there doesnt exist any such