Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

How to change PI AF retrieval mode with SQL to get previous compressed time value?

$
0
0

In this video I see mention of a retrieval mode http://www.youtube.com/watch?v=L43IPKXVopI.

 

What SQL query can I use to change the retrieval mode?

 

I want to get the previous compressed tag time before some specific time.

 

More detail:

A normal SQL query like select top 1 order by time where time < x takes way too long (times out), there must be some function I can use.

InterpolateDiscrete almost does what I want but it returns the timestamp I give as a parameter instead of the timestamp that the event occured at.

I want non-interpolated values.


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>