Commit d529044c authored by Igor Drozdov's avatar Igor Drozdov

Split query for code-nav path into two queries

parent b7510d7a
---
title: Split query for code-nav path into two queries
merge_request: 37092
author:
type: performance
...@@ -28,11 +28,11 @@ module Gitlab ...@@ -28,11 +28,11 @@ module Gitlab
latest_commits_shas = latest_commits_shas =
project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha) project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha)
artifact = pipeline = @project.ci_pipelines.for_sha(latest_commits_shas).last
::Ci::JobArtifact
.with_file_types(['lsif']) next unless pipeline
.for_sha(latest_commits_shas, project.id)
.last artifact = pipeline.job_artifacts.with_file_types(['lsif']).last
artifact&.job artifact&.job
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment