diff options
author | Stan Hu <stanhu@gmail.com> | 2018-11-02 11:27:01 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-11-02 12:11:30 -0700 |
commit | dbc03ce3a9db7f8c3d29f657beccd839d515e384 (patch) | |
tree | 8149327bf0c2b970f07e6a54536db68ae3cb4bb4 /lib | |
parent | 6f12e3929df987e49427a1355cdf35798f97da65 (diff) | |
download | gitlab-ce-sh-optimize-mr-commit-sha-lookup.tar.gz |
Optimize merge request refresh by using the database to check commit SHAssh-optimize-mr-commit-sha-lookup
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
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions