diff --git a/internal/proxy/search_reduce_util.go b/internal/proxy/search_reduce_util.go index 88cbc3e95a0d6..ecc77e39d5fd6 100644 --- a/internal/proxy/search_reduce_util.go +++ b/internal/proxy/search_reduce_util.go @@ -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