One thing that always made me uncomfortable with this pattern is that it almost always forward SQL read requests to the view. Itβs during the rendering of your partial / template that the methods are called.
How do you handle this in production @github? Eager loading in the controller wonβt help here because scopes always fire an SQL request I guess.
But the pattern is great, used it multiple times and will use it again. Great article ππΌ
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One thing that always made me uncomfortable with this pattern is that it almost always forward SQL read requests to the view. Itβs during the rendering of your partial / template that the methods are called.
How do you handle this in production @github? Eager loading in the controller wonβt help here because scopes always fire an SQL request I guess.
But the pattern is great, used it multiple times and will use it again. Great article ππΌ