With R and Shiny Pro it is possible to implement multi-user analytical applications.
When a database is used to store intermediate data, how to give access to multiple user access to the db becomes very relevant and necessary.
Currently I'm using MonetDB / MonetDB.R configured (as usual for R) as a single user access, which means that any user operation occurs in sequence.
I would like to implement some type of connection pooling with the DB.
From past SO responses the driver does not include connection pooling.
Are there alternatives within these toolsets?
I am not aware of any connection pool implemented for R DBI connections. The setup you describe seems rather special. You could just create a connection for every client session. MonetDB limits the amount of concurrent connections however, to increase this limit, you could set max_clients
to a higher value, for example by starting mserver5
with --set max_clients=1000
or (if you use monetdbd
), monetdb set nclients=1000 somedb
. Of course, DBI connection pooling would also be a feature request for Shiny Pro and not for MonetDB.R .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.