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