mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
[skip ci] add comments in shards
This commit is contained in:
parent
91019f7139
commit
b552b77a7e
@ -63,7 +63,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
|
||||
row_num = files_collection.row_num
|
||||
ids = files_collection.ids
|
||||
diss = files_collection.distances # distance collections
|
||||
# TODO: batch_len is equal to topk
|
||||
# TODO: batch_len is equal to topk, may need to compare with topk
|
||||
batch_len = len(ids) // row_num
|
||||
|
||||
for row_index in range(row_num):
|
||||
@ -83,7 +83,6 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
|
||||
batch_len,
|
||||
reverse)
|
||||
|
||||
|
||||
calc_time = time.time() - calc_time
|
||||
logger.info('Merge takes {}'.format(calc_time))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user