Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have record set of around 17000 of rows, and 135 of columns, it is taking time 7-10 minutes to export in excel.

How can I minimize that time.

Please help me.

Thankx
Posted

1 solution

The best way to minimize this time would be to not do it this way. Try reducing the number of columns or rows. The other thing to do would be to schedule this export to be run instead of trying to do it on the fly. You could even run this export on a different (faster) machine. Finally, you could cut out Crystal Reports and dump the data from SQL directly into Excel. You might want to look at something like PowerPivot, which works very well with massive amounts of data.

You are working with almost 2.3 million data points. Exporting all of those into Excel is going to take time, especially if you are loading it in memory once (in Crystal) and then trying to make a copy of it in memory to transform it into Excel.

Update
If you are looking to find out more information about PowerPivot, this is a good place to start:

http://technet.microsoft.com/en-us/library/gg413497(v=sql.105).aspx[^]

It will be a radical shift from what you are doing now, but the performance improvements will be incredible. It all depends on if you want to tweak your system or if you want to do a complete overhaul. This method is a complete overhaul. The other methods above are more tweaks.
 
Share this answer
 
v2
Comments
smfarooq 22-Jun-12 9:19am    
Sir I em using asp.net, and generating export at run-time, I do not have idea about using PowerPivot, please let me know how do I use PowerPivot?

Thanks
Tim Corey 22-Jun-12 9:33am    
I updated my solution with more info about PowerPivot. If you are doing your export with ASP.NET, I think you are going to either need to accept the speed issues or change how you operate. At the very least, I would recommend scheduling the export and then just linking to the Excel file on your site instead of letting your users generate the file on the fly.
smfarooq 22-Jun-12 9:41am    
Thanks for replying, I have seen above article that you've mentioned in your solution, and observe that PowerPivot is only available for Office2010, and we can not be limited to Office 2010.

Is there any recommendation please let me know.

Thanks.
Tim Corey 22-Jun-12 9:45am    
Then you are going to choose one of the other options I laid out. Schedule the creation of the Excel document, reduce the amount of data going to Excel, put the export on a more powerful computer, or live with the speed issues.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900