Create a temporary table (containing only the values ββvalue1 and value2) and fill it in bulk (i.e. you can do this with a single insert statement). Then upgrade using the connection between the existing table and the temporary table.
Something like
INSERT INTO SomeTempTable(id, some_id) VALUES (1,2), (3,4), (5,6), ....... UPDATE A INNER JOIN SomeTempTable ON A.id = SomeTempTable.id SET A.some_id = SomeTempTable.some_id;
Kickstart
source share