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

[Question] How to avoid duplicate queries when one is running #12733

Closed
hushaoqing opened this issue Jan 25, 2021 · 1 comment
Closed

[Question] How to avoid duplicate queries when one is running #12733

hushaoqing opened this issue Jan 25, 2021 · 1 comment
Labels
question & help wanted Use Github discussions instead

Comments

@hushaoqing
Copy link
Contributor

In my case, I want to avoid duplicate queries when one is running.
Such as, when user open a dashboard:

  1. A long query(3mins) for a chart is running
  2. Another one trigger a same query when 1) is still running
  3. result: there will be two same queries sent to database.

How to avoid duplicate queries in this case? Thanks.

@hushaoqing hushaoqing added the #bug Bug report label Jan 25, 2021
@dpgaspar dpgaspar added question & help wanted Use Github discussions instead and removed #bug Bug report labels Jan 25, 2021
@villebro
Copy link
Member

This is a known limitation in the current architecture. However, this should be resolved once Global Async Queries become generally available: #9190 . If you feel like testing the feature, feel free to enable the GLOBAL_ASYNC_QUERIES feature flag. See the CONTRIBUTING.md documentation for details: https://github.com/apache/superset/blob/master/CONTRIBUTING.md#async-chart-queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question & help wanted Use Github discussions instead
Projects
None yet
Development

No branches or pull requests

3 participants