Do not fetch full visualization SO when visiting listing page #118144
Labels
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
performance
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Similar to #118143
Currently the visualize library listing page is using the following URL to fetch visualizations for listing them:
/api/saved_objects/_find?default_search_operator=AND&has_reference=%5B%5D&page=1&per_page=1000&search_fields=title%5E3&search_fields=description&type=lens&type=visualization
This returns all attributes of the saved objects which can sum up pretty quickly with complex visualizationslike vega.
Only fields required to display the listing page should be fetched. As the visualization "type" is part of the stringified JSON this is not a trivial change and requires migration, but it should be extracted to a separate field so only title and type can be requested.
The text was updated successfully, but these errors were encountered: