09052056:对这个资产展示使用线程池的方法去做,第五次优化代码

master
冷调 2024-09-05 20:56:08 +08:00
parent 1f148fb880
commit b8c1e65edc
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ public class DataValueServiceImpl extends ServiceImpl<DataValueMapper, DataValue
@Autowired
private DataSourceService dataSourceService;
// 每批次查询的记录数
private static final int BATCH_SIZE = 10000;
private static final int BATCH_SIZE = 1000;
// 线程池大小
private static final int THREAD_POOL_SIZE = 10;
private static final int THREAD_POOL_SIZE = 100;
@Override
public List<DataValue> findTableValue(DataValueModel dataValueModel) {
List<DataValue> dataValueList = new ArrayList<>();