mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 14:37:53 +08:00
提升Catalog数据入库速度
This commit is contained in:
parent
16b1bf6819
commit
03090c7260
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user