app/models/import.rb in reso-0.1.5.0 vs app/models/import.rb in reso-0.1.5.1
- old
+ new
@@ -64,15 +64,16 @@
stream += line
while (from_here = stream.index(open_tag)) && (to_there = stream.index(close_tag))
xml = stream[from_here..to_there + (close_tag.length-1)]
doc = Nokogiri::XML([xml_header, xml].join).remove_namespaces!
found_listing_keys << create_queued_listing_and_return_listing_key(doc, self)
+ import_result.update_attribute(:found_listing_keys, found_listing_keys)
stream.gsub!(xml, '')
if ((l += 1) % 100).zero?
GC.start
snapshots << [l, l/(Time.now - start_time)]
import_result.update_attribute(:snapshots, snapshots)
- puts snapshots.inspect if Rails.env.development?
+ puts snapshots.last.inspect if Rails.env.development?
end
end
end
snapshots << [l, l/(Time.now - start_time)]
end_time = Time.now