Closed dgl closed 5 years ago
If a minimum resolution for downsampling is introduced in issue #31 then that value can be used instead of the suggested 10sec
The heuristic is to figure out if the query is instantaneous, so it's just to deal with clocks not quite in sync. Using the downsampling value could lead to misleading results.
Ah, clocks, that clarifies the reason for the 10sec.
Robin looked into this a bit, because last actually looks further back to find older timeseries (i.e. tags that exist but don't have recent data), it's actually more expensive. Don't think this is worth pursuing.
If a query is instantaneous then use
/api/query/last
to potentially reduce query cost http://opentsdb.net/docs/build/html/api_http/query/last.htmlWill need a heuristic like mintime == maxtime and in last ~10 seconds to figure out if it's instantaneous, but that should be ok.