Commit 1bc4196e authored by Sean McGivern's avatar Sean McGivern

Merge branch 'perf_improvement_on_occurrence_load_feedback' into 'master'

Do not replace methods of BatchLoader proxy objects

See merge request gitlab-org/gitlab!32956
parents 885d4631 dc130b9c
......@@ -190,7 +190,7 @@ module Vulnerabilities
end
def load_feedback
BatchLoader.for(occurrence_key).batch do |occurrence_keys, loader|
BatchLoader.for(occurrence_key).batch(replace_methods: false) do |occurrence_keys, loader|
project_ids = occurrence_keys.map { |key| key[:project_id] }
categories = occurrence_keys.map { |key| key[:category] }
fingerprints = occurrence_keys.map { |key| key[:project_fingerprint] }
......
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