Skip to content

feat: file store merge metrics (#26615)#26834

Merged
devanbenz merged 1 commit into1.12from
db/cherrypick-4e8a3b3
Sep 25, 2025
Merged

feat: file store merge metrics (#26615)#26834
devanbenz merged 1 commit into1.12from
db/cherrypick-4e8a3b3

Conversation

@devanbenz
Copy link
Copy Markdown

  • feat(1.x,file_store): port metrics for merge work

This commit ports metrics around merging tsm blocks when executing a query. These will appear in EXPLAN ANALYZE results. The new information records the time spent merging blocks, the number of blocks merged, roughly the number of values merged into the first block of each ReadBlock call, and the number of times that single calls to ReadBlock have more than 4 block merges. The multiblock merge is sequential and might benefit from a tree merge algorithm. The latter stat helps identify if the engineering effort would be fruitful.

(cherry picked from commit 4e8a3b3)

* feat(1.x,file_store): port metrics for merge work

This commit ports metrics around merging tsm blocks when executing a
query. These will appear in EXPLAN ANALYZE results. The new information
records the time spent merging blocks, the number of blocks merged,
roughly the number of values merged into the first block of each
ReadBlock call, and the number of times that single calls to ReadBlock
have more than 4 block merges. The multiblock merge is sequential and
might benefit from a tree merge algorithm. The latter stat helps
identify if the engineering effort would be fruitful.

* closes #26614

* chore: switch to a timer for duration printing of times

* chore: rename method

* fix: avoid race and use new atomic primitive

(cherry picked from commit 4e8a3b3)
Copy link
Copy Markdown
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM

@devanbenz devanbenz merged commit 133c290 into 1.12 Sep 25, 2025
9 checks passed
@devanbenz devanbenz deleted the db/cherrypick-4e8a3b3 branch September 25, 2025 14:03
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