From 5bcd8495e03b08ff417f74f816d20e028f9b1fe0 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期日, 20 二月 2022 16:22:43 +0800 Subject: [PATCH] 兼容海康不规范的xml,大幅度提高通道分页查询速度,优化节点的保活。 --- sql/update.sql | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/sql/update.sql b/sql/update.sql index d6386ea..2a16265 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -1 +1,7 @@ -ALTER TABLE stream_proxy ADD status bit(1) not null; \ No newline at end of file +ALTER TABLE stream_proxy ADD status bit(1) not null; + +# 鍘婚櫎瀛愭煡璇紭鍖栨煡璇㈤�熷害 +alter table device_channel + add subCount int default 0 null; + +update device_channel dc set dc.subCount = (select te.count from (SELECT count(0) as count FROM device_channel WHERE parentId = dc.channelId) te) \ No newline at end of file -- Gitblit v1.8.0