title: How to save an array of objects to the database really fast in Rails3?
body: <p>I have an really big array of objects read from a CSV file and want to save it to the database.
  This is what I am doing:</p>
  
  <pre><code># Read CSV
  ... each do |values|
    new_value = Model.new
    ... # fill properties
    @new_values.push new_value # put it into the array
  end
  
  # now save them to the database
  @new_values.each do |new_value| 
      new_value.save :validate =&gt; false
      @added_counter += 1
  end
  </code></pre>
  
  <p>But this is really slow because it will make a statement for each element in the array. How can this be done in a fast and correct way?</p>