简体   繁体   English

MonetDB,R和Shiny Pro的连接池

[英]connection pooling with MonetDB, R and Shiny Pro

With R and Shiny Pro it is possible to implement multi-user analytical applications. 使用R和Shiny Pro,可以实现多用户分析应用程序。

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. 当前,我正在使用配置为MonetDB / MonetDB.R(对于R通常如此)作为单个用户访问,这意味着任何用户操作都是按顺序进行的。

I would like to implement some type of connection pooling with the DB. 我想与数据库实现某种类型的连接池。

From past SO responses the driver does not include connection pooling. 根据过去的SO 响应 ,驱动程序不包括连接池。

Are there alternatives within these toolsets? 这些工具集中是否有替代方案?

I am not aware of any connection pool implemented for R DBI connections. 我不知道为R DBI连接实现的任何连接池。 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 . MonetDB限制并发连接的量然而,提高此上限,则可以设置max_clients通过启动到一个更高的值,例如mserver5--set max_clients=1000或(如果使用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 . 当然,DBI连接池也将是Shiny Pro的功能请求,而不是MonetDB.R的功能请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM