         }, completion: {object, isLoadedFromCache, error in
             log.warning("Cache daily result \(key) \(isLoadedFromCache)")
             if let aggArray = object {
+                log.warning("Cache daily result \(key) size \(aggArray.aggregates.count)")
                 self.queryResultAsSamples(.AggregatedSamples(aggArray.aggregates), error: error, completion: completion)
             } else {
                 completion(samples: [], error: error)

                    }

                    if let aggArray = self.aggregateCache[key] {
                        completion([aggArray.aggregates.map { return finalizeAgg(.DiscreteMax, $0).numeralValue! },
                                    aggArray.aggregates.map { return finalizeAgg(.DiscreteMin, $0).numeralValue! }])
                    }
                }
            }

        }, completion: {object, isLoadedFromCache, error in
            log.warning("Cache result \(key) \(isLoadedFromCache)")
            if let aggArray = object {
                log.warning("Cache result \(key) size \(aggArray.aggregates.count)")
                self.queryResultAsSamples(.AggregatedSamples(aggArray.aggregates), error: error, completion: completion)
            } else {
                completion(samples: [], error: error)
