Commit 56b7dfb0 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Change the batch size to 100

parent bc0e1c3d
......@@ -294,7 +294,7 @@ module EE
def update_vulnerabilities
return if project.resolved_vulnerabilities.none?
project.vulnerabilities.each_batch do |relation|
project.vulnerabilities.each_batch(of: 100) do |relation|
self.updated_count += relation.merge(project.resolved_vulnerabilities)
.update_all(resolved_on_default_branch: true)
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