[skip ci] Update codes of insert templet on benchmark (#13062)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/13087/head
wt 2021-12-09 16:57:17 +08:00 committed by GitHub
parent 0ac30342f6
commit 4135299c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -83,8 +83,7 @@ class InsertRunner(BaseRunner):
logger.debug("Start drop collection")
self.milvus.drop()
time.sleep(utils.DELETE_INTERVAL_TIME)
self.milvus.create_collection(dimension, data_type=vector_type,
other_fields=other_fields)
self.milvus.create_collection(dimension, data_type=vector_type, other_fields=other_fields)
# TODO: update fields in collection_info
# fields = self.get_fields(self.milvus, collection_name)
# collection_info = {
@ -98,7 +97,7 @@ class InsertRunner(BaseRunner):
self.milvus.create_index(index_field_name, case_param["index_type"], case_param["metric_type"], index_param=case_param["index_param"])
logger.debug(self.milvus.describe_index(index_field_name))
else:
build_index = False
# build_index = False
logger.warning("Please specify the index_type")
# TODO: error handler