From d35461827080fb65d1fe7c6b7fc8600079fd28be Mon Sep 17 00:00:00 2001 From: Yulia Cech Date: Mon, 31 Jan 2022 18:21:21 +0100 Subject: [PATCH] [IM] Added the parameter `features` to the indices list API to improve ES performance --- x-pack/plugins/index_management/server/lib/fetch_indices.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugins/index_management/server/lib/fetch_indices.ts b/x-pack/plugins/index_management/server/lib/fetch_indices.ts index 5050353f992b6..7b25956703db2 100644 --- a/x-pack/plugins/index_management/server/lib/fetch_indices.ts +++ b/x-pack/plugins/index_management/server/lib/fetch_indices.ts @@ -30,6 +30,9 @@ async function fetchIndicesCall( '*.settings.index.hidden', '*.data_stream', ], + // for better performance only compute aliases and settings of indices but not mappings + // @ts-expect-error new param https://github.com/elastic/elasticsearch-specification/issues/1382 + features: ['aliases', 'settings'], }); if (!Object.keys(indices).length) {