提升Catalog数据入库速度

pull/1669/head
648540858 2024-10-27 20:21:55 +08:00
parent 16b1bf6819
commit 03090c7260
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
log.info("通道重设,数据为空={}" , deviceChannelList); log.info("通道重设,数据为空={}" , deviceChannelList);
return false; return false;
} }
int limitCount = 50; int limitCount = 500;
if (!addChannels.isEmpty()) { if (!addChannels.isEmpty()) {
if (addChannels.size() > limitCount) { if (addChannels.size() > limitCount) {
for (int i = 0; i < addChannels.size(); i += limitCount) { for (int i = 0; i < addChannels.size(); i += limitCount) {