OHDSI/CemConnector

Async requests

Opened this issue · 1 comments

Currently, the shiny app is somewhat limited in useability because big requests to the API or database block the main thread. Investigations in to using promises proved that this might not be simple to implement as this would need to be handled in the shiny module. It is also no clear how to best do this with the database backends as, currently, the connections exist in the main R thread.

One possible solution is to, optionally, have the backends handle their own futures. More investigation is needed.

This is less of an issue now that the loading is displayed more clearly to the user and the shiny explorer ui uses eventReactive buttons rather than changing on any user input.