Do not block dashboard SO loading on default data view loading #140243
Labels
Feature:Dashboard
Dashboard related features
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
performance
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
In
kibana/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts
Line 148 in 00c8cf9
and
kibana/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts
Line 154 in 00c8cf9
first, the request is done to check whether there is data. Then, the default data view is loaded to check whether a default data view exists. Only afterwards the dashboard saved object is loaded. The data view loading is two roundtrips to Elasticsearch. The dashboard SO loading is one roundtrip to Elasticsearch. Loading these three things in parallel would save at least two roundtrips and speed up the time to meaningful render.
The text was updated successfully, but these errors were encountered: