[skip e2e]Add comment for estimate in indexcoord (#13760)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13902/head
cai.zhang 2021-12-20 17:44:06 +08:00 committed by GitHub
parent 1dc4418059
commit 05919ed346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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