メインコンテンツまでスキップ

release()

この操作は、現在の collection のデータをメモリから解放します。

リクエスト構文​

python
release(
timeout=None,
)

パラメーター:

  • timeout (float | None)

    この操作のタイムアウト時間です。これを None に設定すると、レスポンスが返されるか、何らかのエラーが発生した時点でこの操作はタイムアウトします。

例​

python
from pymilvus import Collection, CollectionSchema, FieldSchema, DataType

schema = CollectionSchema([
FieldSchema("id", DataType.INT64, is_primary=True),
FieldSchema("vector", DataType.FLOAT_VECTOR, dim=5)
])

# Create a collection
collection = Collection(
name="test_collection",
schema=schema
)

# Load the entire collection with one replica of the collection data
collection.load()

# Release the entire collection data
collection.release()

以下の操作は release() に関連しています。