在.Net 中 是否有第三方实现 Sqlserver 客户端连接池的 SDK - V2EX
tututututututu
·
2023-04-13
·
via SQL Server
 |
|
2
forgottencoast 2023 年 4 月 15 日
连接池是内置的,你只需要根据你的需求进行配置就可以了。 详见: https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-connection-pooling Connection pooling reduces the number of times that new connections must be opened. The pooler maintains ownership of the physical connection. It manages connections by keeping alive a set of active connections for each given connection configuration. Whenever a user calls Open on a connection, the pooler looks for an available connection in the pool. If a pooled connection is available, it returns it to the caller instead of opening a new connection. When the application calls Close on the connection, the pooler returns it to the pooled set of active connections instead of closing it. Once the connection is returned to the pool, it is ready to be reused on the next Open call.
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。