kaijagahm / ygdpDashboard

Interactive dashboard for YGDP survey data
3 stars 0 forks source link

Load testing #23

Open kaijagahm opened 3 years ago

kaijagahm commented 3 years ago

I have a feeling that this app is pretty inefficient. I don't know how it would stand up to use by more than one person at a time. It could probably be optimized.

There's a really great talk from a past RStudio conference that talks about load testing Shiny apps and putting them into production. It's here. Definitely should use profvis and shinyloadtest like he explains here. Even if we don't think lots of people are going to be using the app at the same time, doing this will help us just make a single instance of the app be a bit more efficient.

kaijagahm commented 3 years ago

I think that fixing the weird loop (#24) will probably help a lot with efficiency. We can clearly see on the reactlog() that that loop is taking up a HUGE amount of time compared to the rest of what's going on.