Skip to content

Commit

Permalink
enhance: improve reduce performance on very large topk
Browse files Browse the repository at this point in the history
Signed-off-by: xiaofanluan <[email protected]>
  • Loading branch information
xiaofan-luan committed May 11, 2024
1 parent 8a9a421 commit 0005af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/search_reduce_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func reduceSearchResultDataNoGroupBy(ctx context.Context, subSearchResultData []
cursors = make([]int64, subSearchNum)

j int64
idSet = make(map[interface{}]struct{})
idSet = make(map[interface{}]struct{}, limit)
)

// skip offset results
Expand Down

0 comments on commit 0005af4

Please sign in to comment.