EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-01-28 04:44 AM
Hi everyone, we'd like to optimize data in our Building Operation WorkStation. We have many units, which inserts stats into TimeScale Postgres database under Windows.
Parameter "Delta" says "if there is value more than this parameter, write to DB", otherwise write stats into DB after "Maximum log interval" value.
The problem is, if the value delta is wrongly set, there are thousands of inserts into DB and the DB grow up quickly.
Now we'd like to create SQL query, which returns "first 20 from TimeScaleDB with the highest frequency inserted value in the specific interval (for example 14 days).
The query itself is simple. The problem is in DB, which is very complex and not intuitive. Now my question is:
Does exist any other way how to determine units with the most inserts in the whole TimeScale DB?
OR
Does exist technical specification of Building Operation WorkStation, which specify postresql database specification and operation insertion?
Our system is running on:
Building Operation WorkStation version 3.2.1.630
Postgres 1.9.1
TimeScale 11_1.7.4
Thank you
Regards
Jiri
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-01-29 01:07 AM . Last Modified: 2022-01-31 08:26 PM
TimescaleDB is an open-source database invented to make SQL scalable for time-series data. It’s a relatively new database system. TimescaleDB has been introduced to the market two years ago and reached version 1.0 in September 2018. Nevertheless, it’s engineered on top of a mature RDBMS system. TimescaleDB is packaged as a PostgreSQL extension. All code is licensed under the Apache-2 open-source license, Target Card Balance Now with the exception of some source code related to the time-series enterprise features licensed under the Timescale License (TSL).
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.