Skip to content

Avoid creating known_fields for every check in Alias - #124690

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

dakrone merged 5 commits into
elastic:mainfrom
mushao999:optimize/known_fields_creation_in_createIndex

Conversation

@mushao999

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@mushao999

Copy link
Copy Markdown
Contributor Author

ping @fressi-elastic

@dakrone dakrone self-assigned this Mar 21, 2025
@dakrone

dakrone commented Mar 21, 2025

Copy link
Copy Markdown
Contributor

buildkite test this

@dakrone dakrone left a comment

Copy link
Copy Markdown
Contributor

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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants