milvus-logo
LFAI
< Docs
  • Node

getPartitionStatistics()

This method checks the statistics of a specified partition.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.getPartitionStatistics(
  GetPartitionStatisticsReq
);

Parameters

GetPartitionStatisticsReq

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

Example

new milvusClient(MILUVS_ADDRESS).partitionManager.getPartitionStatistics({
  collection_name: "my_collection",
  partition_name: "my_partition",
});

Return

{
  status: { error_code: 'Success', reason: '' },
  data: { row_count: '0' },
  stats: [ { key: 'row_count', value: '0' } ]
}

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?