Although the development of applications is fast in Rails, the applications themselves are often a bit slow. The elegant framework increases the productivity of the programmer but reduces the performance of the application. The DRY principle is great to prevent code repetition, but it is less optimal to increase speed: it is of course much [...]
Posts Tagged ‘cache’
Increase the Performance of Ruby on Rails Applications
Posted in development, principles, rubyonrails, software, tagged rails, rubyonrails, cache, performance, speed on February 17, 2009 | Leave a Comment »
The key to a high-performance site
Posted in development, principles, tagged cache, caching, performance on November 29, 2008 | Leave a Comment »
“caching! caching! caching!”, see for example the Wikipedia Infrastructure
Update of counter-cache columns
Posted in rubyonrails, tagged cache, rails, rubyonrails, sql on October 13, 2008 | Leave a Comment »
The counter cache for belongs_to associations is a useful Rails feature to speed up your application. It allows to cache the number of objects which belong to the associated class. All you need to do is to add :counter_cache => true to the belongs_to association:
class Comment
belongs_to :post, :counter_cache => true
And you need to [...]