'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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user