From d447f3b584d09005c2db01892ff880c137bae8db Mon Sep 17 00:00:00 2001 From: wt Date: Thu, 28 Oct 2021 18:52:24 +0800 Subject: [PATCH] [skip ci] Add comment of benchmark (#10833) Signed-off-by: wangting0128 --- tests/benchmark/milvus_benchmark/metrics/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/benchmark/milvus_benchmark/metrics/api.py b/tests/benchmark/milvus_benchmark/metrics/api.py index 9e15b78511..c439adc408 100644 --- a/tests/benchmark/milvus_benchmark/metrics/api.py +++ b/tests/benchmark/milvus_benchmark/metrics/api.py @@ -53,5 +53,6 @@ def save(obj): env_doc_id = insert_or_get(md5) obj.env = {"id": env_doc_id, "value": vars(obj.env)} + # insert data to mongoDB collection = _client[DB][DOC_COLLECTION] collection.insert_one(vars(obj))