lib/storage: tune loopsCountPerMetricNameMatch according to production workload

This commit is contained in:
Aliaksandr Valialkin 2021-03-25 13:27:47 +02:00
parent d4aadba9fa
commit 6e855d4b82

View File

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