Closed f-zehner closed 7 months ago
Hi @f-zehner,
I have the same performance problems as you with an R shiny application that integrates shinymanager + MariaDB, have you been able to solve the problem?
Thank you very much. Sergio
Hi @sciordia,
Interesting. Unfortunately, I haven't. Just using a workaround by falling back to a non-DB variant (setting up a dataframe loaded via an RDS that is managed via a different interface based on MariaDB). If you do not need the admin panel and user log information shinymanager provides this is a quite well working variant because it's slim. Did you use my YAML posted above or one you created yourself? (just trying to make sure I did not introduce the performance problems with my YAML)
Best, Fabian
Hi. Some performance improvment on last version 1.0.510.
connect_every_request: true
in SQL config ymlHi @bthieurmel Thanks so much for your work! Indeed, the performance issues with MariaDB are resolved 💪 However, unfortunately, I have two subsequent issues. Let me know if you want me to open new issues for those instead of adding them here. They seem, however, related to your recent release, so it might be reasonable to report them in here:
"[1] "con"
is printed to the console once the database connection is established.Failed to update user
and the console contains the following error: Error : Incorrect integer value: 'FALSE' for column
reco_shinyusers.
credentials.
adminat row 1 [1366]
. For me, this doesn't look like a mistake on my end, but I might be wrong.Thanks again for your work
EDIT: The admin panel is able, however, to update the credentials
-table (e.g., if I ask for password changes), so I'm pretty confident the above issue is a bug in the add user
-feature.
Hi. Due to MariaDB boolean gestion as integer and DBI support. We needed to explicitly convert first value to 0 / 1.
Fix on github version.
Hi @f-zehner and @bthieurmel ,
I'm glad you were able to solve the performance issues with shinymanager, could you update the code you are currently using after the improvements made by @bthieurmel , please?. @bthieurmel, is the version that fixes these problems already available in cran or do you have to use the latest version from github?.
Would it be possible to use a MariaDB database that already has the user table implemented. I would just want shinymanager to check the credentials and if they are correct to allow access.
Thanks in advance to both of you.
Sergio
Thought you might be interested in this marginally adapted yml-file for the use with
MariaDB
.Works, although the whole app has become super-slow since I included MariaDB via shinymanager. Will need to see whether I can improve this.
EDIT: It seems that shinymanager does not manage the DB connections properly when using MariaDB. I just copied a MWE from my local dev environment to the server and while the app loaded quickly the first time, when I reloaded the app, it also was really slow (>1min loading time), so it seems it generates connection zombies.