Active Record Can't Do It? Arel can!

Query Optimization