In my company while I was looking into code, I came across this query:
update people set approval="A" where peopleid in (peoples);
Here peoples
is a string containing 1,2,3,4,5,6
like this. Sometimes it contains more than 150 names. I thought of doing a batch update. But my other team members say it executes only one time and improves. But I have doubt that MySQL internally executes this 150 times. I see it taking a lot of time. I searched in net but did not find an answer. Can anybody tell me here that query is fine or batch update is good?