TiDB单次事务数据量大会报错

我将mysql的user表用mysqldump导出来,然后插入TiDB,多次调用insert into user select * from user;
再几十万行的时候就报错了,报事务过大。

mysql> insert into user select * from user;
Query OK, 262144 rows affected (25.93 sec)
Records: 262144  Duplicates: 0  Warnings: 0

mysql> insert into user select * from user;
ERROR 9500 (HY000): transaction too large, len:300001
mysql> insert into user select * from user;
ERROR 9500 (HY000): transaction too large, len:300001

你可能感兴趣的:(tidb,tidb)