Skip to content
  • Patrick Bajao's avatar
    Reduce N+1 queries when approvals by committers are not allowed · 9e7ef142
    Patrick Bajao authored and Dylan Griffith's avatar Dylan Griffith committed
    This reverts commit 6cf9fb71, reversing
    changes made to 92c318af.
    
    Preload `merge_request_diff_commits` association of each MR when
    `mergeRequests` are queried via GraphQL.
    
    We also need to batch load committers and lazy load the value of
    `mergeable` and `detailed_merge_status` to prevent N+1 queries for
    querying committers by their emails.
    
    Changelog: performance
    EE: true
    9e7ef142