大数据量插入问题 insert into A select * from B


1)要开启autocommit=1,才能开启tidb_batch_insert
2)开启tidb_batch_insert,才能开启tidb_dml_batch_size

https://docs.pingcap.com/zh/tidb/v2.1/transaction-overview/

2 个赞