This topic describes how to release a collection from memory after a search or a query to reduce memory usage.
When interacting with Milvus using Python code, you have the flexibility to choose between PyMilvus and MilvusClient (new). For more information, refer to Python SDK.
Releasing the collection that is successfully loaded is allowed.
Releasing the collection is allowed when its partition(s) are loaded.
Error will be returned at the attempt to release partition(s) when the parent collection is already loaded. Future releases will support releasing partitions from a loaded collection, and loading the collection when its partition(s) are released.