ActiveRecord Anti-Patterns for Fun and Profit
Ethan Gunderson
• Kansas City, MO
•
Talk
Date: November 04, 2011
Published: July 30, 2015
Announced: May 27, 2011
ActiveRecord Anti-Patterns for Fun and Profit by: Ethan Gunderson
If you're writing code that looks like User.all.reject(), you're doing it wrong. Don't worry though, we've all done it before. ActiveRecord makes it all too easy to introduce code that is far from performant, and after awhile, we tend to forget that underneath the pretty API, we are still producing SQL. In this talk, we'll peel back the API so that we can see some of the common mistakes I see when dealing with ActiveRecord statements, and more importantly, how you can fix them.
Ruby Midwest 2011