Hi friends,
I hope all of you are doing well and staying safe.
I have a general question and will very much appreciate any suggestion.
how can we speed up a shiny/flexdb app that queries from MS SQL and the data size is always a dataframe in the size of 30 columns and more than 30000 rows.
At this moment the most expensive calculation is using pivottabbler package to create a pivot table and using ggplot to creat column graphs based on pivot calculations
Maybe there's two ways to look at it. One, would there be a way for you to separate the code to do the pivot and queries outside of the apps code and have the app code just pull from the results? so create another script where the processing is done locally and just having app pull data.