Skip to content

Commit d1b13c5

Browse files
authored
[7.x] Apply terminateAfter params in index status API (#85432) (#85745)
1 parent 41a88f3 commit d1b13c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugins/uptime/server/lib/requests/get_index_status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const getIndexStatus: UMElasticsearchQueryFn<{}, StatesIndexStatus> = asy
1515
_shards: { total },
1616
count,
1717
},
18-
} = await uptimeEsClient.count({});
18+
} = await uptimeEsClient.count({ terminateAfter: 1 });
1919
return {
2020
indexExists: total > 0,
2121
docCount: count,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"indexExists": true,
3-
"docCount": 2000
4-
}
3+
"docCount": 1
4+
}

0 commit comments

Comments
 (0)