09052056:对这个资产展示使用线程池的方法去做,第五次优化代码
parent
1f148fb880
commit
b8c1e65edc
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue