Resolve N+1 when serialising Vulnerability Finding links
@minac noted that !106992 (merged) introduces N+1 query issues as the serialisation of Vunlerability::Finding
s now calls on each related Vulnerability::IssueLink
and Vulnerability::MergeRequestLink
as well.
Implementation Plan
-
Introduce a includes
call to fetch associated link queries as part of the upper Vulnerability::Finding query
Edited by Gregory Havenga