I currently host my Dash application on a Linux Server, using gunicorn. I’m thinking of using the combination of dcc.Interval and dcc.Store to periodically update my app. Silly question, but dcc.Interval will fire the callback to update the information in dcc.Store even when nobody is currently on the page right (of course, given the server is running)?
The alternative was to refresh the data on every page refresh, which I’m thinking might not be too suitable for cases where there is a large amount of data to be queried from a backend SQL database.
Oh hmm strange… It seems like the dcc.Interval would start counting from when the first time the application is visited on the browser, not when it is launched in the server.
I was hoping to have it run, and store data from expensive queries into dcc.Store, so when a visitor comes in, they wouldn’t have to wait too long before the visualization is displayed.
Or is there a better way to achieve what I’m looking to do?