Commit ab11604b by guequierre

'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.
parent 7b47f409
......@@ -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;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment