mrc-ide / naomi

Naomi model for subnational HIV estimation
https://mrc-ide.github.io/naomi
Other
9 stars 9 forks source link

Reduce number of indicators returned in plotting data #404

Closed r-ash closed 1 year ago

r-ash commented 1 year ago

We've seen the plotting data returned to the front end for DRC growing too big and it causing issues with transfer and serializing times. Serializing to json taking about 35s and data transfer can take several minutes which is causing problems for people on slower connections. The serialized json is going to 600MB which is too big for a single response. This PR puts in a temporary fix to cut down the number of indicators returned, eventually we will split this data transfer up instead to send a request to get plotting data for each indicator/time separately. But this is a quick fix for now.

r-ash commented 1 year ago

hintr PR https://github.com/mrc-ide/hintr/pull/465

r-ash commented 1 year ago

DRC are unblocked by using firefox so we don't need this temporary hack anymore!