Skip to content
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

Small time series agg improvement #106288

Merged
merged 2 commits into from Mar 13, 2024

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 added auto-backport-and-merge Automatically create backport pull requests and merge when ready and removed Team:StorageEngine labels Mar 13, 2024
@martijnvg martijnvg merged commit ac4e2f4 into elastic:main Mar 13, 2024
14 checks passed
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
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready >enhancement :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v8.13.1 v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants