I have around 1,10,000 records in my database which I want to export to excel sheet. I am able to insert 1,000 records without any issue using "spreadsheet" gem. But after 1,000 real deal start. From 1,000 to 2,000 records, it's very slow insertion with 100% CPU utilization. After 2,000 whole system is crashing.
Create excel sheet with 1,000 records in one excel sheet and then merging excel-sheets is not preferred.
Environment:
Linux-Ubuntu 14.04 OS,
Ram: 1GB,
Ruby Version: ruby 2.3.1p112