[英]Connection pooling using custom connection provider
Is connection pooling enabled when you use a custom connection provider that generates connection strings dynamically? 使用动态生成连接字符串的自定义连接提供程序时,是否启用了连接池? The user is the only data changed in the connection string, and many sessions can be opened for the same user through the time. 用户是连接字符串中唯一更改的数据,并且同一时间可以为同一用户打开许多会话。 By the way, I'm using NHibernate 3.0 to connect to a database in SQL Server 2005. 顺便说一句,我正在使用NHibernate 3.0连接到SQL Server 2005中的数据库。
无论如何生成连接字符串,都将使用ADO.NET池,但是将连接字符串绑定到池时,字符串必须相同,因此,如果用户名更改,则不满足此条件,因此您将从每个用户的不同池中获得连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.