summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-07-07 12:56:09 +0100
committerSean McGivern <sean@gitlab.com>2017-07-07 13:59:23 +0100
commit4c0864fd9e14cda78cacdfbbc2f3072b699ebb9b (patch)
tree51382c4a4a12190ff2f41bb24b09988b7e8c8e06 /lib/api/entities.rb
parentd40445e4c9964ae0ab793bfdd7ba530de4259716 (diff)
downloadgitlab-ce-4c0864fd9e14cda78cacdfbbc2f3072b699ebb9b.tar.gz
Speed up `all_commit_shas` for new merge requests
For merge requests created after 9.4, we have a `merge_request_diff_commits` table we can get all the SHAs from very quickly. We just need to exclude these when we load from the legacy format, by ignoring diffs with no serialised commits. Once these have been migrated in the background, every MR will see this improvement.
Diffstat (limited to 'lib/api/entities.rb')
0 files changed, 0 insertions, 0 deletions