Skip to content

Charts tabs update chart execute same query simultaneously when results tab opened #38152

@kimsehwan96

Description

@kimsehwan96

Bug description

When a user runs a chart query in Explore with the Data Tables Pane open on the Results tab, two identical database queries are executed simultaneously. This doubles the load on the database for every chart execution in Explore view, with no benefit to the user.

Screenshots/recordings

Image

When update chart with open results tab, then same query are submitted at trino.

Image

If update chart with results tab opend, then same http api call is sent to superset backend

Superset version

master / latest-dev

Python version

3.11

Node version

18 or greater

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exploreNamespace | Anything related to Explore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions