从网站打开与数据库的连接 [英] open connections to db from website
本文介绍了从网站打开与数据库的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从我的网站检查与数据库的打开连接数.
How to check the number of open connections to database from my website.
推荐答案
这可能因您使用的数据库系统而异-一个简单的Google使用您的整个问题似乎都可以证实: ^ ]
真正的问题是,您打算将其用于什么?所有编写良好的软件都会打开连接,进行交易,然后再次关闭它,以减少同时打开的连接数.除非您的软件表现不佳,否则打开的连接数很可能会a)连续读取之间的差异很大,并且b)毫无用处.
This may vary depending on the database system you are using - a simple Google using your whole question seems to confirm that: http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=How+to+check+the+number+of+open+connections+to+database+from+my+website[^]
The real problem is, what are you going to use it for? All well written software opens the connection, transacts, and closes it again to reduce the number of simultaneously open connections. Unless you have badly behaved software, the number of open connections is likely to a) vary wildly between successive reads, and b) be useless.
这篇关于从网站打开与数据库的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文