trinodb / grafana-trino

The Trino datasource allows to query and visualize Trino data from within Grafana.
Apache License 2.0
35 stars 10 forks source link

A new query is triggered each time tab is changed #248

Closed Amit-Hora closed 7 months ago

Amit-Hora commented 9 months ago

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

nineinchnick commented 9 months ago

This might be a duplicate of #209

Amit-Hora commented 9 months ago

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 ?
nineinchnick commented 9 months ago

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

Amit-Hora commented 9 months ago

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

Amit-Hora commented 9 months ago

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

Amit-Hora commented 9 months ago

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

nineinchnick commented 7 months ago

Fixed by #252