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
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Name of the collection to load. | String | True |
timeout | An optional duration of time in millisecond to allow for the RPC. Default is undefined | Number | False |
Example
new milvusClient(MILUVS_ADDRESS).collectionManager.loadCollectionSync({
collection_name: "my_collection",
});
Return
// loadCollectionSync return
{ error_code: 'Success', reason: '' }