I have a complex MySQL query that I cannot optimize further, so I had to split it into 3 queries using variables. However, I want to share this dashboard as a public dashboard - unfortunately that does not work with variables…
Example
Variable 1 - locationIds
: Get all location IDs for customer
Variable 2 - transactionIds
: Get all transaction IDs related to above location IDs
Panel: Using transactionIds
, run some query on it and present the result.
I have tried:
- Optimizing the overall query (all 3 in one) - no success
- Using multiple MySQL statements and variables - does not work in Grafana
I am looking for ideas to work around this limitation for public dashboards… anything to cache variable1/2 results (without using variables) and allowing me to reference to it in the Panel Query. Is there any Plug-In that could help?
Thanks!