Feeds:
Posts
Comments

Posts Tagged ‘cache’

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 [...]

Read Full Post »

“caching! caching! caching!”, see for example the Wikipedia Infrastructure

Read Full Post »

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 [...]

Read Full Post »