Commit b2f34fb5 authored by Michael Kozono's avatar Michael Kozono
Browse files

Speed up inserts

parent ca7f8178eab7
......@@ -80,8 +80,10 @@ def ionice_is_available?
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
......
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