diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index c903988f9b..7a8ca87e75 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -2091,7 +2091,7 @@ func (is *indexSearch) updateMetricIDsAll(metricIDs *uint64set.Set, accountID, p // The maximum number of index scan loops per already found metric. // Bigger number of loops is slower than updateMetricIDsByMetricNameMatch // over the found metrics. -const maxIndexScanLoopsPerMetric = 400 +const maxIndexScanLoopsPerMetric = 100 func (is *indexSearch) intersectMetricIDsWithTagFilter(tf *tagFilter, filter *uint64set.Set) (*uint64set.Set, error) { if filter.Len() == 0 {