[skip ci]Add time record for flush (#11937)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/11988/head
zhuwenxing 2021-11-17 15:53:11 +08:00 committed by GitHub
parent 55d162356b
commit a6594b65da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -55,8 +55,11 @@ def hello_milvus(host="127.0.0.1"):
t1 = time.time()
print(f"\nInsert {nb} vectors cost {t1 - t0} seconds")
t0 = time.time()
print(f"\nGet collection entities...")
print(collection.num_entities)
t1 = time.time()
print(f"\nGet collection entities cost {t1 - t0} seconds")
# create index and load table
default_index = {"index_type": "IVF_FLAT", "params": {"nlist": 128}, "metric_type": "L2"}