<< | Index | >>
Goal/Estimate/Evaluation:
Log (the last run with 'sleep 0.01' method after the instance creating part)
migel> Migel::Util::Importer.new.update('data/csv/migel_de.csv','de') -> Array migel> Migel::Util::Importer.new.update('data/csv/migel_fr.csv','fr') -> Array migel> Migel::Util::Importer.new.import_all_products_from_csv('migel_product_de.csv', 'de', true) -> Array
Note
Experiment
def update_product(migelid, record, lang = 'de') lang.downcase! product = migelid.products.find{|i| i.pharmacode == record[:pharmacode]} || begin p "F0" i = Migel::Model::Product.new(record[:pharmacode]) #sleep 0.01 p "F2" migelid.products.push i i end
def initialize(pharmacode) @pharmacode = pharmacode p "F1" end
Log
updating: 10343 / 30742 Estimate total: 27.00 [m] It will be done in: 17.92 [m] "F0" "F1" "F2" /usr/lib64/ruby/site_ruby/1.8/odba/cache.rb:324: [BUG] Segmentation fault ruby 1.8.6 (2009-06-08) [x86_64-linux] Abgebrochen (Speicherabzug geschrieben)
Note