mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add comment for estimate in indexcoord (#13760)
Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>pull/13902/head
parent
1dc4418059
commit
05919ed346
|
@ -43,6 +43,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.
|
||||
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