One thing that will improve query performance speed is using larger window durations. You’re querying 24 hours of data and windowing it every minute. This means you’ll have approximately 1440 windows per unique group in your data set. Go with a longer window duration, like 5 or 10 minutes.
I don’t know if it will be much quicker, but you can improve how some of the filter logic works. See my example below.
I wouldn’t worry about dropping columns before you run the aggregate.
By default, all the returned points will be grouped by measurement so when you run an aggregate, you’ll get separate values per window per measurement. Remove the grouping to group all points into a single table, no matter which measurement they came from.
Thanks for your response!
Yeah a larger window duration helped a lot.
Grouping and droping didn’t help.
I will also increse my focus on downsampling the data, this also helps.
I hope that the Flux-Query performance will also increase soon…