lib/storage: tune loopsCountPerMetricNameMatch

This commit is contained in:
Aliaksandr Valialkin 2021-03-22 12:53:04 +02:00
parent 92531a38c4
commit 1618b0ca6d

View File

@ -3277,7 +3277,7 @@ func (is *indexSearch) updateMetricIDsForPrefix(prefix []byte, metricIDs *uint64
}
// The estimated number of index scan loops a single loop in updateMetricIDsByMetricNameMatch takes.
const loopsCountPerMetricNameMatch = 500
const loopsCountPerMetricNameMatch = 300
func (is *indexSearch) intersectMetricIDsWithTagFilter(tf *tagFilter, filter *uint64set.Set) (*uint64set.Set, error) {
if filter.Len() == 0 {