On Sun, Mar 6, 2011 at 12:08 PM, Xavier Noria <[email protected]> wrote:
> The fastest way to import data into a database from a file is the > builtin commands to so. Like COPY FROM/TO. We are talking orders of > magnitude. Is that possible in your case, perhaps after some CSV > normalization? > Yeah, thanks. Actually this is the route I am investigating right now, but doing a gross import of the csv, then doing the normalization in Ruby. I am working on getting it working by calling the command via ActiveRecord --- ActiveRecord::Base.connection.execute(sql). > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

