[Lens] Build index pattern field map for O(1) access #82243
Labels
Feature:Lens
performance
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
Projects
Currently the Lens-specific
IndexPattern
type only contains an array of field which is used in a lot of places to find a field by name.This is problematic if the index pattern has a lot of fields.
To improve performance, the loader should expose the
data
index pattern object already providing this functionality bygetFieldByName
.By completely removing the local index pattern type we can also remove redundancy and a bit of the complexity of Lens.
The text was updated successfully, but these errors were encountered: