未验证 提交 da64fcb9 编写于 作者: W wt 提交者: GitHub

[skip ci] Add comments of insert func on benchmark base file (#7907)

Signed-off-by: Nwangting0128 <ting.wang@zilliz.com>
上级 98732b3d
......@@ -96,6 +96,10 @@ class BaseRunner(object):
ni_time = 0.0
vectors_per_file = utils.get_len_vectors_per_file(data_type, dimension)
if size % vectors_per_file or size % ni:
"""
An error is reported when
the amount of data inserted in a single time cannot divide the total amount of data
"""
logger.error("Not invalid collection size or ni")
return False
i = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册