Proposal to move logic from client to server side
By filing an issue to this repo, I promise that
- [x] I have fully read the issue guide at https://yihui.name/issue/.
- [x] I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT'). - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- [x] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
I did a flexdashboard app (https://ivanmarino.shinyapps.io/flexdashboard/#section-manipolatore-dati), i advice you that is in italian but it shouldn't be a problem for explaining my idea. There is a DT data table on the top of the screen and a selectInput labeled "Dati" in order to change the dataset visualized in the DataTable. I noticed that changing the selected dataset, it triggers an upload stream that send to the server which rows are currently visualized and a list of all the possible row numbers of the dataset.
The problem is that, for large datasets, this list of row numbers become heavy enough to slow down the load of the dataset. Personally, my connection is slow in update and to send the list of row numbers of one of the datasets it needs more than 20 seconds to complete the request.
I personally don't understand why the list of the row numbers should be sent by the client instead than deduced from the data serverside. It's possible to change with some options this behavior? If not, would be possible to implement this logic serverside?
Below the link where i previous asked help about this issue, but nobody answered to me. https://community.rstudio.com/t/upload-stream-in-flexdashboard-app/102784
Hope that my question is clear enough. Thank you in advance.
We’re aware of this issue but I’m not sure if it’s fixable.
I’ll think about it and reply you one or two days later when I have more time.