milvus-logo

loadPartitions()

This method loads the specified partition to memory (for search or query).

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.loadPartitions(
  LoadPartitionsReq
);

Parameters

LoadPartitionsReq

ParameterDescriptionTypeRequired
collection_nameName of the collection in which the partition to load existsStringTrue
partition_namesAn array of the names of the partitions to loadString arrayTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).partitionManager.loadPartitions({
  collection_name: "my_collection",
  partition_names: ["my_partition"],
});

Return

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