Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Amit-Hora opened this issue Sep 8, 2023 · 7 comments
Closed

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

Amit-Hora opened this issue Sep 8, 2023 · 7 comments

Comments

@Amit-Hora
Copy link
Contributor

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
Copy link
Member

This might be a duplicate of #209

@Amit-Hora
Copy link
Contributor Author

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
Copy link
Member

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

@Amit-Hora
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Amit-Hora added a commit to Amit-Hora/grafana-trino that referenced this issue Oct 29, 2023
nineinchnick pushed a commit that referenced this issue Nov 3, 2023
@nineinchnick
Copy link
Member

Fixed by #252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants