BigW Consortium Gitlab

Commit 2a5794a3 by Alejandro Rodríguez

Add Gitaly N+1 notice for Banzai filtering

parent 49f72d06
......@@ -18,7 +18,8 @@ module Banzai
def find_object(project, id)
if project && project.valid_repo?
project.commit(id)
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/43894
Gitlab::GitalyClient.allow_n_plus_1_calls { project.commit(id) }
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