mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
454ecf3f52
In a way, our instants were also ranges, just with the staleness delta as range length. They are no treated equally, just that in one case, the range length is set as range, in the other the staleness delta. However, there are "real" instants where start and and time of a query is the same. In those cases, we only want to return a single value (the one closest before or at the equal start and end time). If that value is the last sample in the series, odds are we have it already in the series object. In that case, there is no need to pin or load any chunks. A special singleSampleSeriesIterator is created for that. This should greatly speed up instant queries as they happen frequently for rule evaluations. |
||
---|---|---|
.. | ||
testdata | ||
analyzer.go | ||
ast.go | ||
engine.go | ||
engine_test.go | ||
functions.go | ||
lex.go | ||
lex_test.go | ||
parse.go | ||
parse_test.go | ||
printer.go | ||
printer_test.go | ||
promql_test.go | ||
quantile.go | ||
test.go |