Update about 1 million rows in MySQL table every 1 hour |
(07-21-2020, 07:27 AM)olegrain Wrote:(07-21-2020, 06:59 AM)jreklund Wrote: By the looks of things you are executing (at least want to) one million + 1 query every hour. That's a lot. Depending on what you wan't to do with your data you need to rethink your structure. I’m not actually going to answer your question about the framework but just wanted to mention that for each loops captures all the data into memory. That would be a very bad thing with large data. I believe a while loop would save you on memory issues. While loop should go line by line resulting in lower memory usage. |
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
|