refresh_load()
This operation loads the unloaded data of a loaded collection into memory.
Request syntax
refresh_load(
collection_name: str,
timeout: Optional[str] = None
)
PARAMETERS:
-
collection_name (str) -
[REQUIRED]
The name of the target collection of this operation.
-
timeout (float | None)
The timeout duration for this operation.
Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.
RETURN TYPE:
NoneType
RETURNS:
None
EXCEPTIONS:
-
MilvusException
This exception will be raised when any error occurs during this operation.
Example
from pymilvus import MilvusClient
# 1. Set up a milvus client
client = MilvusClient(
uri="https://inxx-xxxxxxxxxxxx.api.gcp-us-west1.zillizcloud.com:19530",
token="user:password"
)
# 2. Create a collection
client.create_collection(
collection_name="test_collection",
dimension=5
)
# 3. Refresh the load status of the collection
client.refresh_load(
collection_name="test_collection"
)