阅读背景:

为什么在一个请求中建立多个数据库连接是不好的做法?

来源:互联网 

A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first thought is the expense to your script of making that many requests to the DB, but then I counter myself with the question: wouldn't multiple connections make concurrent querying more efficient? has me thi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: