nate berkopec
- 1y ·
-
Public·
-
mastodon.social
When I'm working in Rails, I'm constantly trying to build and update a mental model for what ActiveRecord is doing for the piece of code I'm reading:
1. At what point are relations loaded?
2. When do any AR objects try to access their associations?
3. How many records will probably be returned?
4. Do we ever query for records that we already received in another query?