trinodb / grafana-trino

The Trino datasource allows to query and visualize Trino data from within Grafana.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A new query is triggered each time tab is changed

Amit-Hora opened this issue · comments

Hi @nineinchnick ,

I noticed that if I use explore tab and write some queries, each time I change the browser tab a new query is triggered . How can I avoid this behaviour , like only have query triggered if and only if RunQuery is clicked

This might be a duplicate of #209

I think these are two different concerns

  1. Use cache to display old data till we don't have the result
  2. Avoid query to be executed if a tab is changed , make it more controllable
    Thoughts ?

I don't know if it is possible to avoid Grafana to execute queries.

I could be wrong but I see in QueryEditor these two things. Does these control when to run the query ? . Can we like make it run the query only when we click on RunQuery button ?
image

I observed that this also happens if I click on query editor space and I click outside queryeditor . So each time I click the queryeditor and outside queryeditor a new query is fired

@mrveera do you have any idea on this ?, thanks

Fixed by #252