Such a situation, in the database there is a table which consists of the columns " OperationID " and " Operation_Sum ". There is a script that is in the crown; every hour it changes the value of the " Operation_Sum " column, adding the calculated coefficient to the current value.
I do this, scoop up all the records from the table, go through each record, take the current value of " Operation_Sum " from it, add the coefficient to it and UPDATE update the record in the database. It turns out that if there is a million records in the table, then in a cycle a million times the database will be accessed. Is this normal for php? Or can you somehow update the strings with a bundle?