Is there a way without using a script to run UPDATE that will not slow down the database, only by doing a certain number of rows at a time?
I am doing
UPDATE .. SET .. FROM .. INNER JOIN .. ON ... WHERE
and he is going to update 3,171 rows in a very large table.
I do not want to block the database or slow it down. Any ideas?
Note:
According to MySQL docs for UPDATE: for syntax with multiple tables, UPDATE updates the rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.
I did an INNER JOIN and LIMIT was not allowed to be used using LIMIT, since the solution does not work in this case.
source
share