Welcome Guest, Not a member yet? Register   Sign In
Update about 1 million rows in MySQL table every 1 hour
#7

(This post was last modified: 07-22-2020, 08:41 PM by John_Betong.)

@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 Sad

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.
Reply


Messages In This Thread
RE: Update about 1 million rows in MySQL table every 1 hour - by John_Betong - 07-22-2020, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB