Answer the question
In order to leave comments, you need to log in
Is mass insert/update + increment possible?
Let's say we have a table foo(name, count);
.
I need to frequently increment the count counter by different name.
But in order not to bombard mysql with a bunch of queries continuously, I first collect a certain set of records for insert / update on the backend:
[
'name1' => 235,
'name2' => 1,
'name4' => 3,
// ...
]
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