Skip to content

Commit

Permalink
[7.x] Apply terminateAfter params in index status API (#85432) (#85745)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Dec 14, 2020
1 parent 41a88f3 commit d1b13c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getIndexStatus: UMElasticsearchQueryFn<{}, StatesIndexStatus> = asy
_shards: { total },
count,
},
} = await uptimeEsClient.count({});
} = await uptimeEsClient.count({ terminateAfter: 1 });
return {
indexExists: total > 0,
docCount: count,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"indexExists": true,
"docCount": 2000
}
"docCount": 1
}

0 comments on commit d1b13c5

Please sign in to comment.