I absolutely love this one. A lot of (not so) beginners in Rails mindlessly rely on Active Record queries without thinking of what's actually happening on a DB level behind those. This is a very important concept and I think Rails Guides should have a dedicated section about this, somewhere near the AR part.
I absolutely love this one. A lot of (not so) beginners in Rails mindlessly rely on Active Record queries without thinking of what's actually happening on a DB level behind those. This is a very important concept and I think Rails Guides should have a dedicated section about this, somewhere near the AR part.
Preventing Useless Database Hits
Molly Struve ・ 5 min read