共计 303 个字符,预计需要花费 1 分钟才能阅读完成。
删除汇合
计划一:
def delete_collection():
from pymilvus import utility
utility.drop_collection(settings.MILVUS_CONFIG.collection.name)
计划二:
from core.milvus.models import collection
conn = connections._fetch_handler('default')
if conn.has_collection(settings.MILVUS_CONFIG.collection.name):
logger.debug('汇合已存在')
collection.drop()
正文完