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

milvus-logo
LFAI
< Docs
  • Node

loadCollectionSync()

This method loads the specified collection to memory (for search or query) synchronously and ensures that this collection is loaded.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.loadCollectionSync(LoadCollectionReq);

Parameters

LoadCollectionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to load.StringTrue

Example

new milvusClient(MILUVS_ADDRESS).collectionManager.loadCollectionSync({
  collection_name: 'my_collection',
});

Return

// loadCollectionSync 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?