Skip to content

Avoid creating known_fields for every check in Alias#124690

Merged
dakrone merged 5 commits intoelastic:mainfrom
mushao999:optimize/known_fields_creation_in_createIndex
Mar 24, 2025
Merged

Avoid creating known_fields for every check in Alias#124690
dakrone merged 5 commits intoelastic:mainfrom
mushao999:optimize/known_fields_creation_in_createIndex

Conversation

@mushao999
Copy link
Contributor

This PR moves KNOW_FIELDS creation out of fromXcontent method of Alias class and make it to be a static final field to avoid creating it for every check

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Mar 13, 2025
@fressi-elastic fressi-elastic added the :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. label Mar 14, 2025
@elasticsearchmachine elasticsearchmachine added Team:Data Management (obsolete) DO NOT USE. This team no longer exists. and removed needs:triage Requires assignment of a team area label labels Mar 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@mushao999
Copy link
Contributor Author

@dakrone dakrone self-assigned this Mar 21, 2025
@dakrone
Copy link
Member

dakrone commented Mar 21, 2025

buildkite test this

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@dakrone dakrone merged commit df84065 into elastic:main Mar 24, 2025
19 checks passed
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
* avoid creating known_fields for every check

* add changelog

---------

Co-authored-by: 广富 <shaoqiong.msq@alibaba-inc.com>
Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v9.1.0

4 participants