mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Refine indexcoord util comment (#13998)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>pull/14012/head
parent
ef5be12504
commit
5c003a023e
|
@ -44,7 +44,7 @@ func getDimension(req *indexpb.BuildIndexRequest) (int64, error) {
|
|||
return 0, errors.New(errMsg)
|
||||
}
|
||||
|
||||
// estimateIndexSize estimate how much memory will be occupied by IndexNode when building an index.
|
||||
// estimateIndexSize estimates how much memory will be occupied by IndexNode when building an index.
|
||||
func estimateIndexSize(dim int64, numRows int64, dataType schemapb.DataType) (uint64, error) {
|
||||
if dataType == schemapb.DataType_FloatVector {
|
||||
return uint64(dim) * uint64(numRows) * 4, nil
|
||||
|
|
Loading…
Reference in New Issue