CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Problem exporting excel with large data file

Print topic Send  topic

Author Message
maria_tachi

Posts: 1
Posted: 04/27/2010, 2:32 AM

Hi

I would like to know is there any way that I can optimized the data before exporting the data to excel?

The situation now is that I have loaded 60K records loaded from the database and display using php and now I want to convert the whole results displayed to be exported to excel.

However, excel either takes more than half an hour to load or does or even load most of the time.

I have use set_time_limit(0) before but the time taken for it to load is more than half an hour to export the excel which means that it will be slower on my users' computer as their computer are not as powerful as mine.

Hence, I would like to know whether are there any other methods that I can used for exporting large data to excel? I have thought of checking out any function that can optimized the data before exporting to excel? Based on your experience, is there any function that can do that?

Thanks in advanced
View profile  Send private message
datadoit
Posted: 04/27/2010, 5:38 AM

There are many factors at play here. To start, you may also want to
expand your PHP memory limit to handle the export. That's probably why
you're not getting an export at all on some occasions.

What happens if two folks run the export at the same time? You're
likely going to burp your web server for at least a few moments.

For such a large task, I highly recommend running this export as a
background process, then placing the output as a link to the file on
disk in a database table. That may sound daunting, but it's really
quite a simple concept once you understand the steps.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.