Optimize Flux queries
Some Flux functions can push their data manipulation down to the underlying data source rather than storing and manipulating data in memory. These are known as “pushdown” functions and using them correctly can greatly reduce the amount of memory necessary to run a query.
Pushdown functions
Use pushdown functions at the beginning of your query. Once a non-pushdown function runs, Flux pulls data into memory and runs all subsequent operations there.
Pushdown functions in use
The following functions use more memory or CPU than others. Consider their necessity in your data processing before using them:
We’re continually optimizing Flux and this list may not represent its current state.
To query data over large periods of time, create a task to , and then query the downsampled data instead.