Skip to content

Conversation

felixbarny
Copy link
Member

@felixbarny felixbarny commented Aug 27, 2025

Based on testing, this has marginal impact on storage but decreases the size of the _tsids from 21B-36B to 18B-21B.

Follow-up from #133344
Part of #132566

Based on testing, this has marginal impact on storage but decreases the size of the _tsids from 21B-36B to 18B-21B.
@felixbarny felixbarny requested a review from kkrik-es August 27, 2025 08:51
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label external-contributor Pull request authored by a developer outside the Elasticsearch team v9.2.0 labels Aug 27, 2025
@felixbarny felixbarny self-assigned this Aug 27, 2025
@elasticsearchmachine elasticsearchmachine added Team:StorageEngine and removed needs:triage Requires assignment of a team area label labels Aug 27, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@@ -209,11 +214,11 @@ public MurmurHash3.Hash128 hash() {
* The TSID is a hash that includes:
* <ul>
* <li>
* A hash of the dimension field names (4 bytes).
* A hash of the dimension field names (1 byte).
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if we skip this? is it worth experimenting with? It'd be nice to have a tsid that's always the same size e.g. 20b.

Copy link
Member Author

Choose a reason for hiding this comment

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

Storage is a little worse, but not much. We may be overfitting to a specific dataset, though. We could also have a fixed 4 bytes instead of a variable 1-4 bytes for the values similarity hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants