mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
lib/storage: tune loopsCountPerMetricNameMatch
This commit is contained in:
parent
cef010d5f7
commit
910092ca4d
1 changed files with 1 additions and 1 deletions
|
@ -3252,7 +3252,7 @@ func (is *indexSearch) updateMetricIDsForPrefix(prefix []byte, metricIDs *uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
// The estimated number of index scan loops a single loop in updateMetricIDsByMetricNameMatch takes.
|
// 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) {
|
func (is *indexSearch) intersectMetricIDsWithTagFilter(tf *tagFilter, filter *uint64set.Set) (*uint64set.Set, error) {
|
||||||
if filter.Len() == 0 {
|
if filter.Len() == 0 {
|
||||||
|
|
Loading…
Reference in a new issue