Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.
In the docs it is staded that window should be a pushdown function.
There seems to be a problem causing window not to be pushdown if option location is set to have proper window allignment in a specific timezone.
For testing I used a range of 30 days on 4 series with points every 15 minutes.
Gives a maxAllocated of approximately 800 bytes and looking at the operator profiler I can see that the whole 1quey has been pushed down (I see only one operation):
In the docs it is staded that
window
should be a pushdown function. There seems to be a problem causingwindow
not to be pushdown ifoption location
is set to have proper window allignment in a specific timezone.For testing I used a range of 30 days on 4 series with points every 15 minutes.
The following query (with no
location
):Gives a
maxAllocated
of approximately 800 bytes and looking at the operator profiler I can see that the whole 1quey has been pushed down (I see only one operation):If I set the location:
Gives a
maxAllocated
of approximately 2.700.000 bytes and looking at the operator profiler I can see that only the filters have been pushed down:I expected
window
to be pushdown regardless of the location. Otherwise it creates a lot of problems with high memory usage.