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
the get_relations method is called on a related resource instance solely to provide a "total" number and is not used again. The overhead of this method:
This isn't actually needed. We can likely get this total figure elsewhere, but besides that this property total_relations doesn't appear to be used, also we already called this method earlier anyway:
The text was updated successfully, but these errors were encountered:
whatisgalen
changed the title
get_relations called multiple times on pre-identified related resourcesget_relations() called multiple times on pre-identified related resources
Sep 16, 2024
At this line:
the
get_relations
method is called on a related resource instance solely to provide a "total" number and is not used again. The overhead of this method:...implies an ORM query every time.
This isn't actually needed. We can likely get this
total
figure elsewhere, but besides that this propertytotal_relations
doesn't appear to be used, also we already called this method earlier anyway:The text was updated successfully, but these errors were encountered: