getCollectionStatistics()
This method checks the row count of a specified collection.
Invocation
new milvusClient(MILUVS_ADDRESS).collectionManager.getCollectionStatistics(
GetCollectionStatisticsReq
);
Parameters
GetCollectionStatisticsReq
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Name of the collection to check | String | True |
timeout | An optional duration of time in millisecond to allow for the RPC. Default is undefined | Number | False |
Example
new milvusClient(MILUVS_ADDRESS).collectionManager.getCollectionStatistics({
collection_name: "my_collection",
});
Return
// getCollectionStatistics return
{
status: { error_code: 'Success', reason: '' },
data: { row_count: '0' }
stats: [ { key: 'row_count', value: '0' } ],
}