测试线程池

master
陈思豪 2024-09-09 00:26:34 +08:00
parent 49bcab3824
commit 4850a55629
1 changed files with 1 additions and 2 deletions

View File

@ -228,7 +228,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
private void selectAndAdd(Integer count,Long databaseId,Long basicId,String sql,Long tableId, private void selectAndAdd(Integer count,Long databaseId,Long basicId,String sql,Long tableId,
HashMap<String,String> newAndOldMap,Integer two) { HashMap<String,String> newAndOldMap,Integer two) {
int pageSize = 10000; int pageSize = 700000;
long firstArray = 0L; long firstArray = 0L;
int totalSegments = (int) Math.ceil((double) count / pageSize); int totalSegments = (int) Math.ceil((double) count / pageSize);
for (int i = 0; i < totalSegments; i++) { for (int i = 0; i < totalSegments; i++) {
@ -253,7 +253,6 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
Result result = dataValueClient.addProduct(basicId, tableId, tableValue); Result result = dataValueClient.addProduct(basicId, tableId, tableValue);
log.info("添加结果为{}", result); log.info("添加结果为{}", result);
log.info("添加到queue里成功"); log.info("添加到queue里成功");
} }