Tiki and PluginR

Tiki and PluginR

Re: a better R workflow on a webserver

posts: 68 France

For instance, the first load of our global stats page:
https://wikispiral.org/tiki-index.php?page_ref_id=541 takes ... 46 sec (without loading the tests section - in !!- headings).
... And as we will put on this one, say, 25-45 RR plugins, it might take a long long time before anything shows...
Sure, then it only takes 5sec due to the caching system...

But our data will grow daily... So I guess this long waiting might happen more often to our users than we can imagine.

And the pity is that this is mainly due to the fact that at each time we have to recreate the very same s4r object from a (rapidly growing) database of 60000 entries... Wich is really a bad design... So our question: how to gloabally set in R an object that can be reused for all the sessions, or to run R as a server, so that it can keep some vabiables or objects for global use?