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
latest_commits_shas =
project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha)
artifact =
::Ci::JobArtifact
.with_file_types(['lsif'])
.for_sha(latest_commits_shas, project.id)
.last
pipeline = @project.ci_pipelines.for_sha(latest_commits_shas).last
next unless pipeline
artifact = pipeline.job_artifacts.with_file_types(['lsif']).last
artifact&.job
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