Skip to content
Snippets Groups Projects
Commit c25b7c0e authored by Michael Kozono's avatar Michael Kozono
Browse files

Speed up inserts

parent b63e8f4a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -80,8 +80,10 @@ module Gitlab
end
 
def insert_file_paths(file_paths)
file_paths.each do |file_path|
insert_file_path(file_path)
ActiveRecord::Base.transaction do
file_paths.each do |file_path|
insert_file_path(file_path)
end
end
end
 
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