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