From afe10c8bea41ce032d7cb2423f95bcb6fa41e3cf Mon Sep 17 00:00:00 2001 From: nakabonne Date: Thu, 15 Jul 2021 22:57:03 +0900 Subject: [PATCH] Update notes on data point chunks --- disk_partition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk_partition.go b/disk_partition.go index 407b380..77fd49e 100644 --- a/disk_partition.go +++ b/disk_partition.go @@ -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{}