Speed up inserts
This commit is contained in:
parent
b63e8f4adf
commit
c25b7c0e3f
|
|
@ -80,8 +80,10 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def insert_file_paths(file_paths)
|
def insert_file_paths(file_paths)
|
||||||
file_paths.each do |file_path|
|
ActiveRecord::Base.transaction do
|
||||||
insert_file_path(file_path)
|
file_paths.each do |file_path|
|
||||||
|
insert_file_path(file_path)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue