Skip to content

Commit

Permalink
fix: Fix incorrect memory estimation for small segments
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper committed Jan 1, 2025
1 parent 6fa096e commit 89b237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/querynodev2/segments/segment_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ func getResourceUsageEstimateOfSegment(schema *schemapb.CollectionSchema, loadIn
isVectorType := typeutil.IsVectorType(fieldSchema.DataType)
shouldCalculateDataSize := false

if fieldIndexInfo, ok := fieldID2IndexInfo[fieldID]; ok {
if fieldIndexInfo, ok := fieldID2IndexInfo[fieldID]; ok && len(fieldIndexInfo.GetIndexFilePaths()) > 0 {
var estimateResult ResourceEstimate
err := GetCLoadInfoWithFunc(ctx, fieldSchema, loadInfo, fieldIndexInfo, func(c *LoadIndexInfo) error {
GetDynamicPool().Submit(func() (any, error) {
Expand Down

0 comments on commit 89b237d

Please sign in to comment.