Skip to content

tsdb: Do not track stFloat in typesInBatch explicitly - #17296

Merged
beorn7 merged 1 commit into
release-3.7from
beorn7/histogram
Oct 7, 2025
Merged

beorn7 merged 1 commit into
release-3.7from
beorn7/histogram

Conversation

@beorn7

@beorn7 beorn7 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

As we always log/commit floats first, we actually do not have to start a new batch if a histogram shows up for the first time, even after a float for the same series.

This allows us to not track floats explicitly in the type map of the head appender.

As floats are most common, this should avoid a lot of work.

@krajorama had this idea.

Does this PR introduce a user-facing change?

NONE

@beorn7
beorn7 requested a review from krajorama October 7, 2025 13:03
@beorn7
beorn7 requested a review from jesusvazquez as a code owner October 7, 2025 13:03

@krajorama krajorama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from beorn7/cleanup to release-3.7 October 7, 2025 13:22
@beorn7

beorn7 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor Author

Ignoring MS Windows tests (see #16450).

@beorn7
beorn7 merged commit 3c96052 into release-3.7 Oct 7, 2025
@beorn7
beorn7 deleted the beorn7/histogram branch October 7, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants