Update about 1 million rows in MySQL table every 1 hour |
@olegrain,
I used Cron on a daily basis to download and convert three XLS Spreadsheets to MySql Database Tables. This task used to take over a minute to complete... also the task used to frequently fail because of 100% CPU loading sometimes necessitating a reboot ![]() After numerous attempts at refactoring eventually the same task now completes in just over ten seconds and now runs every hour! The drastic time reduction was due to the frequent use of PHP flush(). Try giving the flush command a whirl and see if it makes a difference. |
Messages In This Thread |
Update about 1 million rows in MySQL table every 1 hour - by olegrain - 07-21-2020, 01:20 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by jreklund - 07-21-2020, 06:59 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by olegrain - 07-21-2020, 07:27 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by ChicagoPhil - 07-22-2020, 01:01 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by jreklund - 07-21-2020, 08:35 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by php_rocs - 07-22-2020, 07:09 AM
RE: Update about 1 million rows in MySQL table every 1 hour - by John_Betong - 07-22-2020, 08:39 PM
|