app/models/import.rb in reso-0.1.5.4 vs app/models/import.rb in reso-0.1.5.5
- old
+ new
@@ -70,10 +70,9 @@
stream.gsub!(xml, '')
if ((listing_count += 1) % 100).zero?
GC.start
snapshots << [listing_count, listing_count/(Time.now - start_time)]
import_result.update_attribute(:snapshots, snapshots)
- import_result.update_attribute(:found_listing_keys, found_listing_keys) unless listing_count > 10000
puts snapshots.last.inspect if Rails.env.development?
end
end
end
snapshots << [listing_count, listing_count/(Time.now - start_time)]