[TSVB] Improve dashboard performance #97371
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
In #82964 we added a functionality to communicate
TSVB
index-patterns to dashboard.Since in version 7.12
TSVB
worked only with string indices, we had to use thefind
method from the data plugin.This solution works fine, but slow - the reason the
find
method works without caching = (Here I should highlight that in some cases this method returns more than one index and for each of them the fields list are requested.
Not let's try to emulate this situation:
3 data
sets and create newTSVB
visualizationPanel Options
andturn off
Kibana index Patterns modekibana_sample*
as an index,@timestamp
as a time field and save your visualizationDashboard
and add saved visualization more than 40 timesResult:
44
separate requests for fieldsMy suggestion.
dual mode
, support index patterns and strings #92812) for selecting index patterns in TSVB, we probably don't need to execute that logic for strings indexes.How example above works for string indices with my changes:
The same for activated Kibana Index Pattern mode (
kibana_sample*
Kibana index was created):