Skip to content

Resolve "Controller Projects::MergeRequestsController#index executes more than 100 SQL queries"

What does this MR do?

Fix an N+1 in project routes for MRs from forks.

Are there points in the code the reviewer needs to double check?

Don't think so!

Why was this MR needed?

You can see this N+1 at https://gitlab.com/gitlab-org/gitlab-ce/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=Community%20Contribution

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • Review
    • Has been reviewed by Backend

What are the relevant issue numbers?

Closes #43111 (closed).

Edited by Grzegorz Bizon

Merge request reports