-------------- update test201 set c2=1, c3=1 where c1 between 1 and 50000000 and c1%1000=1 -------------- Query OK, 50000 rows affected (58.06 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count1 from test201 where c1 between 1 and 50000000 and c1%1000=1 and c2=1 and c3=1 -------------- +--------+ | count1 | +--------+ | 50000 | +--------+ 1 row in set (3.22 sec) -------------- update test201 set c2=2, c3=2 where c1 between 50000001 and 100000000 and c1%1000=2 -------------- Query OK, 50000 rows affected (1 min 7.13 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count2 from test201 where c1 between 50000001 and 100000000 and c1%1000=2 and c2=2 and c3=2 -------------- +--------+ | count2 | +--------+ | 50000 | +--------+ 1 row in set (4.47 sec) -------------- update test201 set c2=3, c3=3 where c1 between 100000001 and 150000000 and c1%1000=3 -------------- Query OK, 50000 rows affected (1 min 19.86 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count3 from test201 where c1 between 100000001 and 150000000 and c1%1000=3 and c2=3 and c3=3 -------------- +--------+ | count3 | +--------+ | 50000 | +--------+ 1 row in set (4.27 sec) -------------- update test201 set c2=4, c3=4 where c1 between 1 and 50000000 and c1%1000=4 -------------- Query OK, 50000 rows affected (1 min 16.81 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count4 from test201 where c1 between 1 and 50000000 and c1%1000=4 and c2=4 and c3=4 -------------- +--------+ | count4 | +--------+ | 50000 | +--------+ 1 row in set (3.15 sec) -------------- update test201 set c2=5, c3=5 where c1 between 50000001 and 100000000 and c1%1000=5 -------------- Query OK, 50000 rows affected (1 min 17.47 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count5 from test201 where c1 between 50000001 and 100000000 and c1%1000=5 and c2=5 and c3=5 -------------- +--------+ | count5 | +--------+ | 50000 | +--------+ 1 row in set (4.36 sec) -------------- update test201 set c2=6, c3=6 where c1 between 100000001 and 150000000 and c1%1000=6 -------------- Query OK, 50000 rows affected (1 min 20.56 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count6 from test201 where c1 between 100000001 and 150000000 and c1%1000=6 and c2=6 and c3=6 -------------- +--------+ | count6 | +--------+ | 50000 | +--------+ 1 row in set (4.17 sec) ERROR 122 (HY000) at line 23: CAL0002: Update Failed: IDB-2008: The version buffer overflowed. Increase VersionBufferFileSize or limit the rows to be processed. -------------- update test201 set c2=7, c3=7 where c1%1000=7 -------------- -------------- select count(*) count7 from test201 where c1%1000=7 and c2=7 and c3=7 -------------- +--------+ | count7 | +--------+ | 1 | +--------+ 1 row in set (4.23 sec) -------------- update test201 set c2=8 where c1%1000=8 -------------- Query OK, 150000 rows affected (2 min 13.98 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count8 from test201 where c1%1000=8 and c2=8 -------------- +--------+ | count8 | +--------+ | 150000 | +--------+ 1 row in set (4.87 sec) -------------- update test201 set c3=9 where c1%1000=9 -------------- Query OK, 150000 rows affected (2 min 13.06 sec) Rows matched: 0 Changed: 0 Warnings: 0 -------------- select count(*) count9 from test201 where c1%1000=9 and c3=9 -------------- +--------+ | count9 | +--------+ | 150000 | +--------+ 1 row in set (4.39 sec) Bye