mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
app/vmselect/promql: move the eval function args in parallel
query trace outside the loop
This commit is contained in:
parent
d1a62af3bd
commit
8a35377cf3
@ -669,9 +669,9 @@ func evalExprsInParallel(qt *querytracer.Tracer, ec *EvalConfig, es []metricsql.
|
||||
}
|
||||
rvs := make([][]*timeseries, len(es))
|
||||
errs := make([]error, len(es))
|
||||
qt.Printf("eval function args in parallel")
|
||||
var wg sync.WaitGroup
|
||||
for i, e := range es {
|
||||
qt.Printf("eval function args in parallel")
|
||||
wg.Add(1)
|
||||
qtChild := qt.NewChild("eval arg %d", i)
|
||||
go func(e metricsql.Expr, i int) {
|
||||
|
Loading…
Reference in New Issue
Block a user