Closed mib32 closed 9 years ago
Please supply me with a pure Ruby test-Script and link it here. No Rails dependencies please. Than I will test with above file on Linux. Thank you.
You can follow next steps to recreate that:
antons-macbook:ayu-store antonmur$ irb
require 'spreadsheet'
cat = Spreadsheet.open('/Volumes/Macintosh HD/Users/gost/dev/wheelmart/lib/cat_27012015.xls')
Sorry but IRB does not work. I need a real Ruby script as a sample to test your file.
@mib32 Try opening your file this way:
Spreadsheet.open('...'); nil # prevents the output of expression result in console
It's a well-known side effect that generation of text presentation of Spreadsheet object takes lots of time and memory.
@rastarobot that's true. thanks.
Thanks for posting here.
@mib32 how did you solve this issue?
I need a script and a testfile to test this. Please supply one, then I can test.
I tried to open in rails console 11MB file using 1.0.1 version of spreadsheet, but lost all of my macbook 4GB RAM and could never finish. Maybe some issues with the file? It is in cyrillic language. This is .xls file: https://drive.google.com/file/d/0BysVPCs2RyX2TGE5NEJZa3lEY3c/view?usp=sharing