A usecase for stateful, global variables and their modification via callbacks

Usecase is roughly:

  1. users want to make plots from large numbers of large datasets
  2. users are guaranteed to all want the same, complete set of datasets
    2.5) users play nicely
  3. short on dev time

The large data case suggests something nice like serverside caching Show and Tell - Server Side Caching
But, 2 and 2.5 basically remove the need for that solution.

Could possibly just use a sqlite db and write to disk, but short on dev time precludes that.

Thoughts?

hi @rictuar
It seems to me like you asking how to save state on the server. Probably using/connecting to a database with callbacks is the way to go. An sqlite db should work.

thanks for the reply. I wasn’t really asking anything, just suggesting a contra-dogma usecase for using global variables.

I agree that using a DB is the more robust approach.

Hello @rictuar,

Assuming you arent adjusting the dfs, you can use the dfs and then allow for the user to filter through things such as AG Grid.

Then apply your filters every time you are charting something to the base df. Or, run the charts off of the virtualRowData of the grids.