Last/First Point since change #64
Replies: 2 comments
-
I'm not sure there's really much we can do for this one; we very much want to use any |
Beta Was this translation helpful? Give feedback.
-
The most recent value for every recording should be maintained by timescale and instantly accessible. Please consider implementing a snapshot() function, viz., select snapshot(time),snapshot(value) from hypertable; There are all kinds of creative ways for getting these values. But all of them are cumbersome, slow, intensive, etc. I currently support this capability by maintaining a table of my own just for these values. Kludgy. |
Beta Was this translation helpful? Give feedback.
-
Currently, the canonical way to find the first point since a change, e.g. finding the first time since
start_time
wherevalue
became'x'
is, to use anINNER JOIN LATERAL
like so(based on our docs)
Is there any better thing we can do?
(Thanks to slack user Jesse Michael for pointing this out)
Beta Was this translation helpful? Give feedback.
All reactions