I have 1 million rows in the MySql table "temp" and you want to multiply the column "t" (int unsigned, indexed) by 1000.
mysql> update temp set t=1000*t;
This process takes 25 seconds. The same non-indexed column statement takes 10 seconds;
Any ideas how to make this process faster? I have to apply this on more than 1e5 tables.
Serg source
share