datacamp icon indicating copy to clipboard operation
datacamp copied to clipboard

Optimize importing from file

Open vojto opened this issue 16 years ago • 0 comments

http://github.com/Stiivi/datacamp/blob/master/lib/csv_importer.rb

  • Let's not create ActiveRecord instance for each imported line, it will take lots of resources when importing huge file.
  • Optimize reading map (transform into array once, don't look for items for each column)

vojto avatar Apr 13 '10 19:04 vojto