Something went wrong on our end. Please try again.
Created by: ryanslade
We noticed that on sourcegraph.com running ReposourceCloneURLToRepoName could be very slow, often take more than 3 seconds to return.
There were two problems:
This PR improves the performance in four ways:
external_service_repos
table in a simple query if we already have the repo cloned.cloud_default
external services as they'll match the majority of repos.Found while investigating https://github.com/sourcegraph/sourcegraph/issues/23775