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

How to reload data in multiple charts on same dash faster? #7906

Closed
miloradkrstevski opened this issue Jul 21, 2019 · 4 comments
Closed

How to reload data in multiple charts on same dash faster? #7906

miloradkrstevski opened this issue Jul 21, 2019 · 4 comments

Comments

@miloradkrstevski
Copy link

Hi guys,

I was wondering if you could help me with the following issue:

  1. I have one table with about 300k rows and 45 columns.
  2. I have created many various charts, but even the filter boxes reload for 1-2-3 seconds.
  3. On every change on any filter, the same 1-2-3 sec for reload of many charts (maybe not all).

How to fasten this reload? I have created multiple indexes in mysql db on many fields that I use, but this does not help a lot.

Can somehow data be cached before working hours in Superset or some ideas?

Thank you.

Regards.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #question to this issue, with a confidence of 0.88. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@villebro
Copy link
Member

Have you enabled redis or similar for caching? When caching is enabled only the first load will be slow (=fetch the data from the source), and subsequent dashboard views will get its data from the cache (usually sub-second load times). The cache can be warmed up automatically to make sure that even the first load is quick (not sure if it's comprehensively documented, though). However, there is a known bug affecting caching of Filterboxes, so that might be causing slowness. There is a PR to fix the bug that's currently pending review, see #7896.

@miloradkrstevski
Copy link
Author

I haven't done this. Is it possible to explain me how to do it?

Thank you @villebro.

@mistercrunch
Copy link
Member

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

No branches or pull requests

3 participants