-
- Downloads
Optimize MergeRequestDiff#last_commit_sha
The previous implementation would load all the MergeRequestDiffCommit entries into memory and retrieve the SHA from the latest entry. We can save a bit of database query time and memory by using the database to retrieve the first item from the database. Seen while investigating Todo API performance. (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25711)
parent
615c14b2
Pipeline #50133712 failed
Stage: build
Stage: prepare
Stage: test
Stage: post-test
Stage: post-cleanup
Please register or sign in to comment