Skip to content

Commit

Permalink
Don't overallocate
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum committed Apr 29, 2024
1 parent 1ec2b79 commit 95b011b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bloomgateway/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (bq *BloomQuerier) FilterChunkRefs(ctx context.Context, tenant string, from
preFilterChunks := len(chunkRefs)
preFilterSeries := len(grouped)

responses := make([][]*logproto.GroupedChunkRefs, 0, 4)
responses := make([][]*logproto.GroupedChunkRefs, 0, 2)
// We can perform requests sequentially, because most of the time the request
// only covers a single day, and if not, it's at most two days.
for _, s := range partitionSeriesByDay(from, through, grouped) {
Expand Down

0 comments on commit 95b011b

Please sign in to comment.