I want to update a table with 90 million records.
For example:
UPDATE huge_table set field3 = CONCAT_WS(' ', field1, field2)
The update locks the table for a while and I want to minimize the amount of time locked.
Should I populate a temp table to store the values, then assign them from the temp table? Or should I try to update in batches of 1000? Perhaps a combination of both.
I would run the update in batches.