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
Fix N+1 query issue in Grant admin invitation letter flag
Use Django''s Exists annotation in get_queryset() instead of calling
has_invitation_letter_request() method for each grant in the admin list.
This optimizes the query to use a single SQL query with EXISTS subquery
rather than individual queries for each grant row.
Co-authored-by: Marco Acierno <[email protected]>
0 commit comments