TiDB對事務的大小做了限制:
單條 KV entry 不超過 6MB
KV entry 的總條數不超過 30w
KV entry 的總大小不超過 100MB
解決辦法:
set @@session.tidb_batch_insert=1;
insert into t select * from tt;
set @@session.tidb_batch_insert=0;
TiDB對事務的大小做了限制:
單條 KV entry 不超過 6MB
KV entry 的總條數不超過 30w
KV entry 的總大小不超過 100MB
解決辦法:
set @@session.tidb_batch_insert=1;
insert into t select * from tt;
set @@session.tidb_batch_insert=0;
定位熱點表 官方資料-熱點問題處理思路 SELECT `DB_NAME` AS '熱點數據庫', `TABLE_NAME` AS '熱點表_名稱', `TABLE_ID` AS '熱點表_ID',