mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
[skip e2e]Add comment for estimate in indexcoord (#13760)
Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user