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

(This post was last modified: 07-21-2020, 08:22 AM by jreklund.)

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

1. Fetching/calculating only when needed
2. Run all calculations in SQL

Thank's for answer. If I run all calculations in SQL for example:

PHP Code:
$this->db->set("game_available_balance""game_available_balance + " $game_balance_in_hour_amountFALSE

is this SQL query will be faster than if I make calculations in php?

And another question: if will use batch update, is it more faster than foreach? If yes, can you write an example of batch update for my case?
Reply


Messages In This Thread
RE: Update about 1 million rows in MySQL table every 1 hour - by olegrain - 07-21-2020, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB