diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index ad0bc8f99..7780f761f 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -1266,12 +1266,6 @@ func (is *indexSearch) getTagFilterWithMinMetricIDsCountAdaptive(tfs *TagFilters var errTooManyMetrics = errors.New("all the tag filters match too many metrics") -func isTooBigTimeRangeForDateMetricIDs(tr TimeRange) bool { - minDate := uint64(tr.MinTimestamp) / msecPerDay - maxDate := uint64(tr.MaxTimestamp) / msecPerDay - return maxDate-minDate > 40 -} - const maxDaysForDateMetricIDs = 40 func (is *indexSearch) adjustMaxMetricsAdaptive(tr TimeRange, maxMetrics int) int {