Skip to content

Remove N+1 queries from the submission lists and detail pages - #5088

Merged
frjo merged 2 commits into
mainfrom
enhancement/submission-list-queries
Dec 4, 2026
Merged

frjo merged 2 commits into
mainfrom
enhancement/submission-list-queries

Conversation

@frjo

@frjo frjo commented Dec 2, 2026 •

Copy link
Copy Markdown
Member
  1. Submission lists from around 150 to 15 queries
  2. Submission detail from around 200 to 40 queries

DB queries are generally fast so this does not make a huge change. Still good to get them in control. It took surprisingly little changes. Screening status was being loaded very inefficiently, some old prefetch that was not used anymore and loading submission revisions together with the live version.

Test Steps

  • Test that submissions list, e.g. the submission all view, works as before.
  • Test that the submission detail page works as before.

@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter labels Dec 2, 2026
@frjo
frjo force-pushed the enhancement/submission-list-queries branch from bf69169 to cfc230d Compare December 2, 2026 10:07
@frjo frjo changed the title Remove N+1 queries from the submission lists, 149 to 13 queries on the all submissions page Remove N+1 queries from the submission lists and detail pages Dec 2, 2026
@frjo
frjo requested a review from wes-otf December 2, 2026 10:16
@frjo
frjo force-pushed the enhancement/submission-list-queries branch from cfc230d to f13b0d2 Compare December 2, 2026 15:27
@frjo
frjo merged commit b203473 into main Dec 4, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant