'list series' instead of 'select * from /.*/ limit 1'

'list series' response is much faster than 'select * from /.*/ limit 1' for the auto-complete option. Especially noticeable on large datasets.
This commit is contained in:
guequierre
2014-07-23 12:37:11 +02:00
parent 7b47f40979
commit ab11604bfb
@@ -126,7 +126,7 @@ function (angular, _, kbn, InfluxSeries) {
};
InfluxDatasource.prototype.listSeries = function() {
return this.doInfluxRequest('select * from /.*/ limit 1').then(function(data) {
return this.doInfluxRequest('list series').then(function(data) {
return _.map(data, function(series) {
return series.name;
});