惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 用好

pile up english translates that are done by me SQLSEREVER测试题 一个有趣的话题 什么是次级域名、URL转发、MX记录、泛域名解析 关于无法创建aspnet web项目的解决办法 Dotnet面试题(欢迎大家加入新的面试题) The following table shows the core technology areas of the .NET Framework. 如何在UserControl中调用所在页面的ViewState (转) - 用好 - 博客园 ASP.NET中的FILE对象总结 (藏) 页面装载用户控件时的事件顺序 (转) 经典收集 程序员喝酒文化 (转贴) .net常用的名字空间 关于C++ 请不要做浮躁的人 三、主流中间件技术平台 生活中的智慧 关于用户控件中的事件 什么是base标签
关于数据库连接池
用好 · 2005-07-02 · via 博客园 - 用好

无论何时,只要一个客户端应用程序积极地与中间层服务器进行通讯,那么服务器就会创建一个与数据库连接、并查询数据库的业务对象,这个业务对象都维护着自己的连接。
中间层创建一个新的业务对象时,该业务对象会创建一个新的Connection对象;当中间层释放一个现有的业务对象时,该业务对象就会关闭,其连接被释放。

当你请求一个连接时,.net数据提供程序会检查已提供的凭据(数据库位置、用户名等),并在池中以匹配凭据的方式搜索打开的连接.如果它定位了这样的一个连接,那么就会将所找到的连接递交给您;否则,它会创建并返回一个新连接。
当你关闭连接对象时,.net数据提供程序并不是真正的关闭了实际的数据库连接。它将连接对象标记为已关闭,但将数据库连接存储在池中。如果数据库连接在特定的时间内(默认为60秒)未被再次使用,.net数据提供程序就会关闭此连接。