Adjustreact
daiao 5 years ago
parent cf6981c875
commit 536b9afcf9

@ -9,9 +9,9 @@ namespace :subjects do
"school_used_count, created_at, updated_at"
subjects.find_in_batches(batch_size: 50) do |s|
Parallel.each_with_index(s, in_processes: 4) do |subject, index|
if subject == s.first
buffer_size == 0
str == ""
if defined?(buffer_size).nil?
buffer_size = 0
str = ""
end
buffer_size += 1
str += ", " unless str.empty?

Loading…
Cancel
Save