如何计算 ScadaLTS 中每秒保存的数据

How count save data per second in ScadaLTS

为 ScadaLTS 创建基准, 谁检查每秒有多少数据存储在数据库中。

创建数据源

复制三遍

并启用每个数据源和数据点。

以及如何计算 ScadaLTS 中每秒保存的数据?

您可以使用 SQL:

select 
count(*),
 YEAR(from_unixtime(ts/1000)),
        MONTH(from_unixtime(ts/1000)),
        DAY(from_unixtime(ts/1000)),
        hour(from_unixtime(ts/1000)),
        minute(from_unixtime(ts/1000)),
        second(from_unixtime(ts/1000))
from pointValues 
where
  YEAR(from_unixtime(ts/1000))  = YEAR(NOW()) and
  MONTH(from_unixtime(ts/1000))  = Month(NOW()) and
  DAY(from_unixtime(ts/1000))  = DAY(NOW())
group by
    YEAR(from_unixtime(ts/1000)),
        MONTH(from_unixtime(ts/1000)),
        DAY(from_unixtime(ts/1000)),
        hour(from_unixtime(ts/1000)),
        minute(from_unixtime(ts/1000)),
        second(from_unixtime(ts/1000))
Having count(*) >5
order by count(*) DESC