GitHub user rsaleev added a comment to the discussion: Warm up charts cache via 
API

@dosu

can it be some kind of race condition. After embedding dashboard and all warm 
ups
1. Warm up all datasets 
2. Warm up charts


```
  def warm_up(self):      
        [self.datasets_service.warm_up_cache(ds) for ds in self.datasets]
        rel_charts = 
self.dashboards_service.list_related_charts(self.dashboard.id)
        [
            self.charts_service.warm_up_cache(ch.id, self.dashboard.id)
            for ch in rel_charts
        ]
```

Do I really need to warm up datasets to decrease time to load for charts?

GitHub link: 
https://github.com/apache/superset/discussions/38718#discussioncomment-16260537

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to