Skip to content

Speed up time-series aggregation #127444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
6 of 13 tasks
dnhatn opened this issue Apr 27, 2025 · 2 comments
Open
6 of 13 tasks

Speed up time-series aggregation #127444

dnhatn opened this issue Apr 27, 2025 · 2 comments
Assignees
Labels
:Analytics/ES|QL AKA ESQL >enhancement :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:StorageEngine

Comments

@dnhatn
Copy link
Member

dnhatn commented Apr 27, 2025

Time-series aggregations, such as {agg}_over_time and rate, against time-series indices are currently slow due to several reasons:

  1. They require two phases:
    • First, grouping by each time-series (by tsid and timebucket).
    • Then, grouping by user-specified groups.
  2. For rate aggregations, data must be provided in timestamp order per time-series.

This issue proposes some ideas and tracks optimizations to improve the performance of time-series aggregations in ES|QL.

Source command

Execution

  • Support segment data partitioning for TS

Values aggregation

Block hash

Planning

  • Use a single aggregation for the second phase.
@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:StorageEngine labels Apr 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@dnhatn dnhatn self-assigned this Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >enhancement :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:StorageEngine
Projects
None yet
Development

No branches or pull requests

2 participants