测试线程池
parent
49bcab3824
commit
4850a55629
|
@ -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,
|
||||
HashMap<String,String> newAndOldMap,Integer two) {
|
||||
int pageSize = 10000;
|
||||
int pageSize = 700000;
|
||||
long firstArray = 0L;
|
||||
int totalSegments = (int) Math.ceil((double) count / pageSize);
|
||||
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);
|
||||
log.info("添加结果为{}", result);
|
||||
log.info("添加到queue里成功");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue