Prevent N+1 when diffStats is queried via GraphQL
What does this MR do and why?
Preload the latest_merge_request_diff
when diffStats
field is queried by using lookahead.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #416505 (closed)