简体   繁体   English

使用自定义连接提供程序的连接池

[英]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.

相关问题 连接池和现场负载 - connection pooling and load on site Windows 中的连接池 C# 中的 Forms - connection Pooling in Windows Forms in C# SQL Server临时表和连接池 - SQL Server Temp Tables and Connection Pooling Trusted_Connection与Integrated Security会影响连接池 - Trusted_Connection vs Integrated Security affects connection pooling 为什么这么多的sp_resetconnections用于C#连接池? - Why so many sp_resetconnections for C# connection pooling? Java中的SQL Server连接池超过600,导致数据库崩溃? - SQL server connection pooling in java exceeds 600, cause database to crash? .NET中的SqlConnection - 如何才能最好地利用连接池? - SqlConnection in .NET — How can I best harness connection pooling? 在 Sql Server 连接字符串中使用 Encrypt=yes -> “provider: SSL Provider, error: 0 - 证书的 CN 名称与传递的值不匹配。” - Using Encrypt=yes in a Sql Server connection string -> “provider: SSL Provider, error: 0 - The certificate's CN name does not match the passed value.” 在IIS Express上为MSDASQL提供程序打开的数据库连接非常慢 - Very slow database connection open for MSDASQL provider on IIS Express 加载SSIS自定义连接管理器/类型时出现问题 - Problem Loading SSIS Custom Connection Manager/Type
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM