Ruby Howto Activerecord

Using includes to eager load active record relationships

Know the size method to use for activerecord lists