[Fleet] Optimize run-time behaviour of fields processing for index template generation #60489
Labels
Feature:EPM
Fleet team's Elastic Package Manager (aka Integrations) project
Team:Fleet
Team label for Observability Data Collection Fleet team
technical debt
Improvement of the software architecture and operational architecture
Currently, everything called from
processFields()
iningest_manager/server/services/epm/fields/field.ts
has been naively implemented and may have performance issues with large inputs. As this function is called once for eachfields.yml
present in package datasets during package installation, this may slow down package installation in an unacceptable way.This task is to review and check the runtime behaviour of
processFields()
and the functions it calls. One particular pain point isdedupFields()
, which searches over a growing list ofdedupedFields
in a loop, but there may be more.Also, add more unit tests where applicable.
The text was updated successfully, but these errors were encountered: