From 2a77726f9451a0a0ebd290bdbe2f7c7dc2fc35fe Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Fri, 14 Aug 2015 16:00:12 -0700 Subject: [PATCH] No need to list, just take map's size A particular test query goes from 2 minutes 40 seconds to 1 minute 25 seconds. --- tsdb/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/executor.go b/tsdb/executor.go index 3f2047a86c..859307a636 100644 --- a/tsdb/executor.go +++ b/tsdb/executor.go @@ -478,7 +478,7 @@ func (e *Executor) executeAggregate(out chan *influxql.Row) { values = e.processDerivative(values) // If we have multiple tag sets we'll want to filter out the empty ones - if len(availTagSets.list()) > 1 && resultsEmpty(values) { + if len(availTagSets) > 1 && resultsEmpty(values) { continue }