“When does ActiveRecord execute queries? No one knows!” ActiveRecord is great. Really, it is. But it’s an abstraction, intended to insulate you from the actual SQL queries being run on your database. And, if you don’t understand how ActiveRecord works, you may be causing SQL queries to run that you didn’t intend to. Unfortunately, the performance costs of many features of ActiveRecord means we can