milvus-logo
LFAI
< Docs
  • Python

release()

This method releases the specified collection from memory.

Invocation

release(timeout=None, **kwargs)

Parameters

ParameterDescriptionTypeRequired
timeoutAn optional duration of time in seconds to allow for the RPC. If it is set to None, the client keeps waiting until the server responds or error occurs.FloatFalse

Return

No return.

Raises

  • CollectionNotExistException: error if the collection does not exist.
  • BaseException: error if the collection has not been loaded to memory.

Example

from pymilvus import Collection
collection = Collection("book")      # Get an existing collection.
collection.release()

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?