Fixed #196 - Exponential lag on auto-updating dashboards.
Disabled hosts and items cahching.
This commit is contained in:
@@ -227,14 +227,13 @@ angular.module('grafana.services').factory('QueryProcessor', function($q) {
|
||||
* }, ...
|
||||
* ]
|
||||
*/
|
||||
var self = this;
|
||||
|
||||
// Group history by itemid
|
||||
var grouped_history = _.groupBy(history, 'itemid');
|
||||
var hosts = _.indexBy(_.flatten(_.map(items, 'hosts')), 'hostid');
|
||||
|
||||
return _.map(grouped_history, function(hist, itemid) {
|
||||
var item = self.cache.getItem(itemid);
|
||||
var item = _.find(items, {'itemid': itemid});
|
||||
var alias = item.name;
|
||||
if (_.keys(hosts).length > 1 || addHostName) {
|
||||
var host = hosts[item.hostid];
|
||||
|
||||
Reference in New Issue
Block a user