How to make Rails application Faster
Posted in Ruby on Rails (RoR) on June 3, 2007 | No Comments »
Here some of tips for increasing speed of rails application.
First :- Convert all ruby based query to sql based query.
User.find(:all).select do |u|
name == ‘#{filter_text}’
end
instead of this type query,Use sql format
User.find(:all,:condtions => “name = ‘#{filter_text}’”
Second :- Try to use include facility in query. Thesetype of query will fetch all child table records in one query [...]