Skip to content

Commit

Permalink
Update notes on data point chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Jul 15, 2021
1 parent 832a382 commit afe10c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (d *diskPartition) selectDataPoints(metric string, labels []Label, start, e
return nil, fmt.Errorf("failed to generate decoder for metric %q in %q: %w", name, d.dirPath, err)
}

// TODO: Use binary search to select points on disk
// TODO: Divide fixed-lengh chunks when flushing, and index it.
points := make([]*DataPoint, 0, mt.NumDataPoints)
for i := 0; i < int(mt.NumDataPoints); i++ {
point := &DataPoint{}
Expand Down

0 comments on commit afe10c8

Please sign in to comment.