Contributions

Article
This article presents an automated way of dealing with N+1 queries and it explains how to go around some of the limitations of eager loading in ActiveRecord. Furthermore, it will show you how to use the query cache to your benefit and how to write tests to prevent those sneaky N+1 queries from coming back.