Apply terminateAfter params in index status API (#85432)

This commit is contained in:
Shahzad 2020-12-10 21:42:49 +01:00 committed by GitHub
parent a2813c8cff
commit 317608420a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -1,4 +1,4 @@
{
"indexExists": true,
"docCount": 2000
}
"docCount": 1
}