分割数据

master
lwj 2024-09-08 15:04:45 +08:00
parent 46979023d2
commit 2c37501b9e
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ public class ProductServiceImpl implements ProductService {
AtomicInteger addCount = new AtomicInteger(); AtomicInteger addCount = new AtomicInteger();
// 分割数据为3000个批次 // 分割数据为3000个批次
List<DataValue[][]> batches = splitData(listList, 5000); List<DataValue[][]> batches = splitData(listList, 300);
try (Connection conn = hikariDataSource.getConnection()) { try (Connection conn = hikariDataSource.getConnection()) {
conn.setAutoCommit(false); // 开启事务 conn.setAutoCommit(false); // 开启事务