[Rails] Re: Discussion about the performance of "auto-expiring" cache fragments

2012-09-08 Thread Frederick Cheung
On Saturday, September 8, 2012 6:25:30 AM UTC+1, bricker wrote: > > [snip] > Line 1 will perform a database query no matter what, on every page load. > It also requires several hits to the cache database to check for every > blog's `cache_key`. > If any post in a blog is updated, that block wil

[Rails] Re: Discussion about the performance of "auto-expiring" cache fragments

2012-09-07 Thread bricker
As a side note, I realize that you wouldn't be instantiating an ActiveRecord::Relation object in a view, but I used that as an example of how you can defer loading almost anything until there is a cache miss. -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: Discussion about the performance of "auto-expiring" cache fragments

2012-09-07 Thread bricker
As a side note, I realize that you wouldn't be instantiating an ActiveRecord::Relation object in a view, but I used that as an example of how you can defer loading almost anything until there is a cache miss. On Friday, September 7, 2012 10:25:30 PM UTC-7, bricker wrote: > > This was sparked by