Skip to content

Small time series agg improvement#106288

Merged
martijnvg merged 2 commits intoelastic:mainfrom
martijnvg:tsdb/time_series_agg_enhancement
Mar 13, 2024
Merged

Small time series agg improvement#106288
martijnvg merged 2 commits intoelastic:mainfrom
martijnvg:tsdb/time_series_agg_enhancement

Conversation

@martijnvg
Copy link
Member

@martijnvg martijnvg commented Mar 13, 2024

After tsid hashing was introduced (#98023), the time series aggregator generates the tsid (from all dimension fields) instead of using the value from the _tsid field directly. This generation of the tsid happens for every time serie, parent bucket and segment combination.

This changes alters that by only generating the tsid once per time serie and segment. This is done by just locally recording the current tsid.

Only generate tsid once per tsid hash and segment.
@martijnvg martijnvg added the :StorageEngine/TSDB You know, for Metrics label Mar 13, 2024
@martijnvg martijnvg changed the title Time series agg improvement Small time series agg improvement Mar 13, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @martijnvg, I've created a changelog YAML for you.

@martijnvg martijnvg marked this pull request as ready for review March 13, 2024 15:29
@elasticsearchmachine
Copy link
Collaborator

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

@martijnvg martijnvg merged commit ac4e2f4 into elastic:main Mar 13, 2024
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 13, 2024
After tsid hashing was introduced (elastic#98023), the time series aggregator generates the tsid (from all dimension fields) instead of using the value from the _tsid field directly. This generation of the tsid happens for every time serie, parent bucket and segment combination.

This changes alters that by only generating the tsid once per time serie and segment. This is done by just locally recording the current tsid.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.13

elasticsearchmachine pushed a commit that referenced this pull request Mar 13, 2024
After tsid hashing was introduced (#98023), the time series aggregator generates the tsid (from all dimension fields) instead of using the value from the _tsid field directly. This generation of the tsid happens for every time serie, parent bucket and segment combination.

This changes alters that by only generating the tsid once per time serie and segment. This is done by just locally recording the current tsid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants