Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Revised Episodes xPerformance x
Model Caching (revised)
Episode #115May 13, 201333 comments

Model Caching (revised)

Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record. (12 minutes)
Eager Loading (revised)
Episode #22Mar 20, 201322 comments

Eager Loading (revised)

One way to improve performance is to reduce the number of database queries through eager loading. Here I demonstrate this and compare the difference between the "includes" and "joins" methods. (7 minutes)
Polling for Changes (revised)
Episode #229Jan 14, 201320 comments

Polling for Changes (revised)

Polling may not be as common today as pushing changes over an open socket, however it is still an effective, simple solution if you do not need instantaneous updates. (10 minutes)
Charts & Graphs (revised)
Episode #223Sep 15, 201258 comments

Charts & Graphs (revised)

If you have a lot of data, consider adding a graph to provide an overview of it. Here I show how to use Morris.js to chart an Order model and visualize trends in the data. (12 minutes)
Memoization (revised)
Episode #137Aug 18, 20129 comments

Memoization (revised)

Memoization is a convenient way to cache a method's response. Here I show several ways to accomplish this from scratch since the ActiveSupport::Memoizable module has been deprecated. (9 minutes)
Fragment Caching (revised)
Episode #90Feb 18, 201222 comments

Fragment Caching (revised)

If you need to cache a certain section of a page instead of the entire page, fragment caching is the way to go. Learn how caching is stored, how to create auto expiring caches, and more. (9 minutes)
Dynamic Page Caching (revised)
Episode #169Feb 11, 201219 comments

Dynamic Page Caching (revised)

Page caching is great for speeding up the performance of a page, but what if it contains user-specific content? Learn how to load content in dynamically through JavaScript in this episode. (7 minutes)
Page Caching (revised)
Episode #89Feb 02, 201220 comments

Page Caching (revised)

Page caching is an efficient way to cache full content to be served by the front-end web server. Learn how to deal with pagination, expiration with sweepers, and user-specific content in this episode. (9 minutes)