New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

Bullet: An Eager Loading Adviser Plugin

In Plugins

bullet.pngBullet is a new Rails plugin (developed by Richard Huang) that helps you reduce the number of queries your Rails app makes, thus increasing its performance.

Essentially, Bullet "watches" the queries your Rails app makes through ActiveRecord and notifies you as to where you should add eager loading or where eager loading is being taking place but not providing any benefits (so you can disable it). It's advised you run Bullet only in development mode while you're working on the app as it's principally for the developer's use.

Bullet's README goes into detail on its operation. By default it does nothing, so you have some options to turn on to get the effect you want.

bbox.pngSupport from: Brightbox; - Europe's leading provider of Ruby on Rails hosting. Now with Phusion Passenger support, each Brightbox server comes with access to a managed MySQL cluster and redundant SAN storage. Brightbox also provides managed services for large scale applications and dedicated clusters.

Post to Twitter Tweet This Post

Vaguely Related Posts (Usually)

One Comment Response to “Bullet: An Eager Loading Adviser Plugin”

  1. #1 » Blog Archive » Rails Reading - Sept 21, 2009 Says:

    [...] Bullet: An Eager Loading Adviser Plugin [...]

Leave a Reply