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
TagField is a Many-to-Many field, so prefetech_related works well to get all the tags together in a single query, but SingleTagField is a foreign field. Even when I use select_related, the duplicate queries are happening for each object in the queryset. Is there a way around this? I am surprised that nobody ever mentioned it. I don't think tagulous' admin mixin addresses this as it does not optimize queryset.
The text was updated successfully, but these errors were encountered:
TagField
is a Many-to-Many field, so prefetech_related works well to get all the tags together in a single query, butSingleTagField
is a foreign field. Even when I useselect_related
, the duplicate queries are happening for each object in the queryset. Is there a way around this? I am surprised that nobody ever mentioned it. I don't think tagulous' admin mixin addresses this as it does not optimize queryset.The text was updated successfully, but these errors were encountered: