This method releases the specified collection from memory.
client.ReleaseCollection(ctx, collName)
Parameter | Description | Type |
---|---|---|
ctx | Context to control API invocation process | context.Context |
collName | Name of the collection to release | String |
No return.
err
: error in the process (if any). Possible errors are listed below:
ErrClientNotReady
, error that the client is not connected.
ErrCollectionNotExists
, error that the collection with the specified name does not exist.
error that API invocation failed.
err := milvusClient.ReleaseCollection(
context.Background(),
"book",
)
if err != nil {
log.Fatal("failed to release collection:", err.Error())
}