Milvus partition 제거하는 법

yoonene·2024년 11월 7일

Milvus partition 제거하는 법

  • drop하기 전에 partition을 release해야 됨.
from pymilvus import connections

# milvus db와 연동
connections.connect(
...     alias="default",
...     user="username",
...     password="password",
...     host="{호스트}",
...     port="{포트}",
...     db_name="{디비 이름}"
... )

# collection
collection = Collection({collection 이름})

# partition 
partition = Partition({collection 이름}, {partition 이름})

# release partition
partition.release()

# drop partition
collection.drop_partition({partition 이름})
profile
NLP Researcher / Information Retrieval / Search

0개의 댓글