🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Node

createPartition()

This method creates a partition in a specified collection.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.createPartition(CreatePartitionReq);

Parameters

CreatePartitionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to create a partition inStringTrue
partition_nameName of the partition to createStringTrue

Example

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

Return

{ error_code: 'Success', reason: '' }

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?