perf: 
️ improve select referee table db query

Remove distinct call in queryset, use exists instead. Annotate referee inv stats to avoid N+1. Fixes #360
Showing
- scipost_django/profiles/models.py 0 additions, 16 deletionsscipost_django/profiles/models.py
- scipost_django/submissions/forms/__init__.py 67 additions, 32 deletionsscipost_django/submissions/forms/__init__.py
- scipost_django/submissions/templates/submissions/_hx_select_referee_table_row.html 17 additions, 20 deletions...s/templates/submissions/_hx_select_referee_table_row.html
- scipost_django/submissions/views/__init__.py 6 additions, 3 deletionsscipost_django/submissions/views/__init__.py
Loading