I'm writing a dashboard with shiny. To load data I'm using an equivalent of
mydata <- reactive({
in.positions <- isolate(input$positions)
(db_conn
%>% tbl('table1')
%>% filter(position %in% in.positions)
%>% inner_join(db_conn %>% tbl('table2'), by = 'id')
%>% collect()
)
})
Here db_conn is a dbPool object.
The problem is that sometimes there'd be a lot of data and it would take some time to load it.
Is there any way I could monitor progress of collect(), ideally mapped to a shiny progress bar?
