Improve N+1 query in VulnerableProjectsByGradeType (follow-up from "Add vulnerabilityGrades to GraphQL API")
Summary
The following discussion from !36861 (merged) should be addressed:
-
@engwan started a discussion: (+1 comment) Looks like this will also lead to an N+1 right? So we didn't really remove the N+1.
🤔
Implementation plan
- Preload projects in
ee/app/models/vulnerabilities/projects_grade.rb
Edited by Michał Zając