fix to reduce memory (#23023)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/23082/head
smellthemoon 2023-03-28 21:36:06 +08:00 committed by GitHub
parent 826c1fb850
commit 846de72fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -694,11 +694,7 @@ func GetTS(i *internalpb.RetrieveResults, idx int64) uint64 {
fieldID := fieldData.FieldId
if fieldID == common.TimeStampField {
res := fieldData.GetScalars().GetLongData().Data
timeStamp := make([]uint64, len(res))
for i, v := range res {
timeStamp[i] = uint64(v)
}
return timeStamp[idx]
return uint64(res[idx])
}
}
return 0