Skip to content
Snippets Groups Projects
Commit 121057c5 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Rolling back change to n+1 detection

parent a02881df
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -165,13 +165,7 @@ module Gitlab
 
return if permitted_call_count <= MAXIMUM_GITALY_CALLS
 
# We've exceeded the limit, but we may still be in the presence of a non
# n+1 but still complex request with many distinct calls. If the maximum
# call count is 1 or less that's probably the case.
max_count = max_call_count
return if max_count <= 1
raise TooManyInvocationsError.new(call_site, actual_call_count, max_count, max_stacks)
raise TooManyInvocationsError.new(call_site, actual_call_count, max_call_count, max_stacks)
end
 
def self.allow_n_plus_1_calls
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment