A
A
AlikDex2015-12-28 15:04:11
MySQL
AlikDex, 2015-12-28 15:04:11

Is it possible to optimize a query like "UPDATE ... WHERE id IN(...)"?

UPDATE `images` SET `shows`=shows+1 WHERE `image_id` IN(5,12237,228634,230074,228823,187448,230150,230095,60,183692,228972,120066,119291,104369,93296)

Essence: updating the counter of displaying pictures. The decision in the forehead, so to speak. I have no idea how this can be optimized. Can you advise?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question