influxdata / influxdata/influxdb

aggregateWindow with first/last is very slow

Open
#23,979 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

syntax: group |> aggregateWindow, when use with mean|avg|sum,the reponse is very fast,but slow with frist|last。
I note that when use with mean|avg|sum, it will use a pushdown pattern,but frist|last doesn't

use with sum|mean|avg
![image](https://user-images.githubusercontent.com/12749301/207555948-9b15297d-d96e-42e9-81b6-77bf52a5c79d.png)

use with frist|last
![image](https://user-images.githubusercontent.com/12749301/207555846-5085e5bd-0036-46b9-8a20-91ee43c2fb6d.png)

os: windows server
version: influxdb 2.5

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported aggregateWindow behavior on InfluxDB 2.5 using comparable queries with mean, avg, sum, first, and last. Inspect how pushdown is handled for these aggregations; done means the first/last behavior and its performance impact are explained and covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.