Please help me in solving this error.
I am getting this error while loading records from text files in to database using ruby scripts.
It just works fine if I
Try something like this:
File.open(fileName) do |csv| csv.each_line do |line| CSV.parse(line) do |values| # Here you can do your manipulation end end end
This way is slower, but it should ensure you don't get out of memory.