milvus-logo
LFAI
< Docs
  • Node

getCollectionStatistics()

This method checks the row count of a specified collection.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.getCollectionStatistics(
  GetCollectionStatisticsReq
);

Parameters

GetCollectionStatisticsReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to checkStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

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' } ],
}
Feedback

Was this page helpful?