Skip to content

Optimize performance of ambiguous ref detection

What does this MR do and why?

Contributes to gitlab-com/gl-infra/production#17737 (closed)

Problem

We make a call FindTag and FindBranch calls to Gitaly every time when user visits a blob page. The increased number of requests hits the exhaustion limits.

Solution

Use tag_exists? and branch_exists? methods that rely on the cached list of tag and branch names.

Merge request reports