Answer the question
In order to leave comments, you need to log in
Which way to calculate the amount in the database is better and more promising for a large volume?
The question seems to be simple, but I have not yet understood and have not found an answer for myself.
We have, for example, a database of, for example, several tens of millions of records.
And in each entry, a random number up to 10k.
How actually it is better to calculate the sum of these numbers and with a smaller load?
On the php side in the loop or on the sql side in the query itself?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question