You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the dot notation in @hook decorator for the related fields (ForeignKey or OneToOneField) it hits the database for every object separately. It doesn't matter if you use select_related or not.
Here are the models to test:
When you use the dot notation in
@hook
decorator for the related fields (ForeignKey or OneToOneField) it hits the database for every object separately. It doesn't matter if you useselect_related
or not.Here are the models to test:
What I got when tried to fetch profiles (with db queries logging):
The text was updated successfully, but these errors were encountered: