Apply terminateAfter params in index status API (#85432)
This commit is contained in:
parent
a2813c8cff
commit
317608420a
|
@ -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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"indexExists": true,
|
||||
"docCount": 2000
|
||||
}
|
||||
"docCount": 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue