refresh_load()
この操作は、ロード済みコレクションの未ロードデータをメモリにロードします。
Notes
これはマネージドコレクションにのみ適用されます。
リクエスト構文
python
refresh_load(
collection_name: str,
timeout: Optional[str] = None
)
パラメータ:
-
collection_name (str) -
[必須]
この操作の対象コレクションの名前。
-
timeout (float | None)
この操作のタイムアウト時間。
これを None に設定すると、いずれかのレスポンスが返されるかエラーが発生した時点で、この操作はタイムアウトします。
戻り値の型:
NoneType
戻り値:
なし
例外:
-
MilvusException
この操作中に何らかのエラーが発生した場合に、この例外が発生します。
例
python
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"
)