[DataViews] Implement DataViewLazy class based on AbstractDataView #167750
Labels
Feature:Data Views
Data Views code and UI - index patterns before 8.0
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
When DataViewAbstract is implemented (#167736), the decoupling of the fields fetching for DataViews can continued by implementing a new
DataViewLazy
class. This will provide consumers of this class to get DataViews without automatic field fetching. This is beneficial to improve the performance when data views are consumed.A potential improvement
In Discover/Lens we currently fetch a data view with all fields, and additionally there's a request for the field list with an indexFilter, aiming the find the fields of indices that match a give query. This fields are then displayed in the "Available fields" list. With the new
DataViewLazy
class, we can optimize this, by e.g. initially just fetch the fields that match the indexFilter, and load all fields on demand. What's more, currently the fetching of fields is blocking the UI when Discover is loaded, or the data view is being switched to a new one. Since field loading with the new class fields is decoupled, we can provide a more responsive UX.The text was updated successfully, but these errors were encountered: