Hi,
I have been building a large scale rails app and it has come time to refactor it.
What tips can you offer me, or resources can you point me to? I am especially interested in making my database calls more efficient.
Hi,
I have been building a large scale rails app and it has come time to refactor it.
What tips can you offer me, or resources can you point me to? I am especially interested in making my database calls more efficient.
"Making database calls more efficient" is not refactoring, it is performance tuning.
Do performance tests and look carefully at your logs to help guide you on what to work on first.
Find out which are your slowest queries and work on them.
Re: Refactoring tips
In general, doing the following will give you some performance boosts.
include
argument (method in Rails 3) to eager load associations when needed. This can be a good place where benchmarking will help you figure out if you're improving or hurting performance.