I use of aspose.cells excel , when the amount of data to 600 thousand inducts to a excel file system performance anomalies:System.OutOfMemoryException.I don't why?so,i hope you can help me to solve it,thrank you!!!
post: the version about this compent is v4.7.1.
The function i used : worksheet.Cells.ImportFromDataReader
Hi,
We are not very sure exactly how many rows and columns you are filling data into the worksheet. Do you insert/use 600,000 records (with specific fields) or cells?
Well, if you fill/import data upto about 600,000 rows with certain number of columns into a single worksheet (in an xlsx file), you do need to have a lot of memory to process this big operation. And, if you complete this process, it is also a time consuming job, the performance would be degraded considerably. Moreover, the resultant excel file would be a huge one. So, we think, as an alternative option, you can split your data to multiple worksheets instead of filling data to a single big sheet. Moreover, you can also try to split your data to create multiple excel files if possible. That would certainly be more efficient and optimize your performance in a great deal. Also, in this way, the out of memory issue won't occur.
Thank you.
HI,
I fell so glad to receive your reply . Because this is a requirement of the enterprise,so we must to stake so much data derived to a file . i want to know , how can do to solve this problem?Of course,we have more than a job to do it ,but it also throw exception.
thank you!
Hi,
Well, Aspose.Cells is a pure .NET component created in managed .NET code. We totally rely on .NET Garbage Collector to allocate and free memory for the processes/operations. As we said earlier, if you put so much data into a single worksheet in a workbook, the process demands huge amount of memory which might result in OutOfMemoryException. Could you split your data to multiple sheets in a workbook (if possible) to check if it can make a difference.
Thank you.