From 1618b0ca6d128fad49c6261eca591b7664df14af Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 22 Mar 2021 12:53:04 +0200 Subject: [PATCH] lib/storage: tune loopsCountPerMetricNameMatch --- lib/storage/index_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index ae1b166f9a..cc8744ab42 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -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 {