Skip to content

Commit

Permalink
bucket: preload series
Browse files Browse the repository at this point in the history
We need this information to be able to decide whether it is possible to
answer a query or not.
  • Loading branch information
Giedrius Statkevičius committed Feb 4, 2019
1 parent 074d3be commit fff5a06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,10 @@ func (s *BucketStore) Series(req *storepb.SeriesRequest, srv storepb.Store_Serie
return errors.Wrapf(err, "failed to expand postings")
}

if err := indexr.PreloadSeries(ps); err != nil {
return errors.Wrap(err, "preload series")
}

for _, ref := range ps {
err := indexr.LoadedSeries(ref, &l, &chunksMeta)
if err != nil {
Expand Down

0 comments on commit fff5a06

Please sign in to comment.