我将从Impx1.x升级到Impx2.x(将查询从influxQL升级到Flux语法)。对于非常简单的查询,当我试图查询500,000多个点时,性能急剧下降,我不确定是否有什么可以改进我的查询以获得更好的性能
InfluxQL:
select last("y") AS "y" from "mydata".autogen."profile"
WHERE time >= '2019-01-01T00:00:00Z' and time <= '2019-01-07T23:59:59Z'
GROUP BY time(1s) FILL(none)通量:
data=from(bucket: "mydata")
|> range(start: 2019-01-01T00:00:00Z, stop: 2019-01-07T23:59:59Z)
|> filter(fn: (r) => r._measurement == "profile")
|> filter(fn: (r) => r._field=="y")
|> aggregateWindow(every: 1s, fn: last, createEmpty: false)
|> yield()有什么建议吗?
https://stackoverflow.com/questions/72444650
复制相似问题