ioBroker / ioBroker.influxdb

Store history data in InfluxDB (not for Windows)
MIT License
36 stars 25 forks source link

Improve getHistory query if using Influx-V2 #329

Closed mango1402 closed 1 year ago

mango1402 commented 1 year ago

solves issue https://github.com/ioBroker/ioBroker.influxdb/issues/328

GermanBluefox commented 1 year ago

Are you sure, that group() not required?

Marc-Berg commented 1 year ago

Are you sure, that group() not required?

Also from my point of view these two queries are equivalent. "group()" is not necessary here.

mango1402 commented 1 year ago

if requesting just one row - done by using first() or last() - there is no need to sort or group.....

Apollon77 commented 1 year ago

Cool, thank you, @GermanBluefox and also myself are not using InfluxDB 2.x so we were unsure. I will merge soon!