Displaying 2 results from an estimated 2 matches for "csv_path".
Did you mean:
cs_path
2012 May 09
12
out of memory (java heap space) on zip creation (jruby)
I am using rubyzip and am trying to put a huge csv file with 1.4
million rows into the zip file.
Using jruby I get a out of heap error.
I believe the error happens in the block below:
Zip::ZipOutputStream.open(zip_path) do |zos|
zos.put_next_entry(File.basename(csv_path))
zos.print IO.read(csv_path)
end
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, s...
2006 Feb 06
4
Memory Issue while looping through CSV file
...t for each record I
am using more memory but thought I was using reusing the same memory
allocated. Anyway, I''m a little new with Ruby and Rails so if you can
tell me where I''m going wrong that would be much appreciated. I have
included the code below. Thanks!
csv_file = CSV.open(CSV_PATH, "r")
csv_file.each do | pattern_temp |
unless pattern_temp[0].nil?
pattern_record = {
:code => pattern_temp[0].delete("\""),
:designer => pattern_temp[1],
:name => pattern_temp[2],
:designs => pattern_temp[3],
:price => pattern_tem...