Investigate and reduce Gitaly N+1 calls on diff_stats GraphQL field
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=438487) </details> <!--IssueSummary end--> ## Background Based on investigation done on https://gitlab.com/groups/gitlab-org/-/epics/12441#note_1730085427, the `diff_stats` field in `GetProjectMergeRequests` query can result to Gitaly N+1 calls for `DiffStats` RPC. ## Proposal Investigate and reduce the Gitaly N+1 calls when `diff_stats` is queried.
issue