homerUK
09-01-2006, 10:11 AM
Hey,
we have various massive exports which are run on our application - they generally take a couple of minutes to produce an XLS file (its financial data).. the trouble is, now the people above have asked for more detailed reports, which is now resulting in the files taking upto 5 minutes to be produced, and in IE the browser is just timing out. (seems ok in FF)
I was using the web control panel and the backup on that seems to say "the backup has been placed in a queue. you will receive a notification once complete". How can I do a similar thing?
does it create a CRON job for that request or something? I cannot think of another way to call the export PHP script in the background and get it to run without the user seeing it.
any ideas?!
ive wondered about having a single CRON job say "fetch_requests.php" which is called every 2 minutes. Then if someone requests an export, it will add their request to the database. The CRON script will check the database for any requests, and perform the export based on the values stored in the DB. Is there any implications on the server if it's checking the DB every 2 minutes?!
we have various massive exports which are run on our application - they generally take a couple of minutes to produce an XLS file (its financial data).. the trouble is, now the people above have asked for more detailed reports, which is now resulting in the files taking upto 5 minutes to be produced, and in IE the browser is just timing out. (seems ok in FF)
I was using the web control panel and the backup on that seems to say "the backup has been placed in a queue. you will receive a notification once complete". How can I do a similar thing?
does it create a CRON job for that request or something? I cannot think of another way to call the export PHP script in the background and get it to run without the user seeing it.
any ideas?!
ive wondered about having a single CRON job say "fetch_requests.php" which is called every 2 minutes. Then if someone requests an export, it will add their request to the database. The CRON script will check the database for any requests, and perform the export based on the values stored in the DB. Is there any implications on the server if it's checking the DB every 2 minutes?!