Use the power of TimescaleDB to avoid triggers #1910
Replies: 2 comments 2 replies
-
Do you, by any chance, have moving sensors? |
Beta Was this translation helpful? Give feedback.
-
Changing FROST to use a subquery to get calculate the phenomenonTime live is theoretically possible, but not trivial.
|
Beta Was this translation helpful? Give feedback.
-
I am facing some challenges with performance with FROST and I have identified the bottleneck in triggers on Observation insertions.
I am using a setup where Observations table is a hypertable indexed on PHENOMENON_TIME_START and partitioned on DATASTREAM_ID.
With the performance of timescale, get the max and min of PHENOMENON_TIME_START for the Observations in a datastream is really a cheap query.
Is there a way, playing with FROST configurations or plugin loader, to avoid to store phenomenonTime for datastreams and retrieve it with a query?
Beta Was this translation helpful? Give feedback.
All reactions