修改线程配置

master
面包骑士 2024-09-10 14:59:42 +08:00
parent 696f4d3a88
commit bafbaee6c8
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>
// 获取查询条数
int count = getFindCount(findSql, nodeMap);
// 划分线程
int pageSize = 30000;
int pageSize = 20000;
int taskNum = 8;
int threadNum = count / pageSize + 1;
log.info("任务 {} 总共需要 {} 条数据, 划分为线程{}条",taskCode,count,threadNum);