gitlab-org--gitlab-foss/changelogs/unreleased/sh-optimize-mr-commit-sha-lookup.yml
Stan Hu dbc03ce3a9 Optimize merge request refresh by using the database to check commit SHAs
Previously for a given merge request, we would:

1. Create the array of commit SHAs involved in the push (A)
2. Request all merge request commits and map the SHA (B)
3. Reload the diff if there were any common commits between A and B

We can avoid additional database querying and overhead by
checking with the database whether the merge request contains any
of the commit SHAs.

Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/53213
2018-11-02 12:11:30 -07:00

5 lines
132 B
YAML

---
title: Optimize merge request refresh by using the database to check commit SHAs
merge_request: 22731
author:
type: performance