I've searched SO for help on this and I think I've exhausted all options.
I have a report that generates about 320k rows and the export to Excel is very slow. So slow that, even after the rendering is over (as shown on the ExecutionLog3
) the excel file isn't even created.
I have removed the Report Headers, even have the export to different sheets to create a smaller excel file and there are no merged cells. None of the columns have any formatting. The usual culprits for slow export to Excel, right?
Here is the output from ExecutionLog3
TimeStart TimeEnd TimeDataRetrieval_Secs TimeProcessing_Secs TimeRendering_Secs TotalTime_Secs ReportSizeMB RowCount Status Format Source
2019-06-12 09:20:57.310 2019-06-12 09:32:41.313 0.000000 0.047000 703.907000 703.954000 55.596719 0 rsSuccess EXCELOPENXML Session
2019-06-12 09:17:44.433 2019-06-12 09:20:01.220 33.336000 103.222000 0.080000 136.638000 0.502475 323800 rsSuccess RPL Live
Here's the output from the AddionalInfo column for the EXCELOPENXML
<AdditionalInfo>
<ProcessingEngine>2</ProcessingEngine>
<ScalabilityTime>
<Pagination>0</Pagination>
<Rendering>0</Rendering>
<Processing>0</Processing>
</ScalabilityTime>
<EstimatedMemoryUsageKB>
<Pagination>32831</Pagination>
<Rendering>356162</Rendering>
<Processing>55997</Processing>
</EstimatedMemoryUsageKB>
<Connections />
</AdditionalInfo>
For comparison, using the "Get Data from SQL Database" feature from within Excel itself and execute the same SP with the same parameters - the whole process takes about 72 seconds to load the data and display in Excel.
Any ideas on how to improve this export?