[英]database connection manngement in application
I am developing a application that is in php and PostgreSQL . 我正在开发php和PostgreSQL中的应用程序。
What I want to know is which of these is best? 我想知道的是哪个最好?
Please guide me the correct way to achieve my objective. 请指导我实现目标的正确方法。
Connect at the start of your script, close it at ending. 在脚本的开头连接,在结束时将其关闭。 No need to re-connect on each query.
无需在每个查询上重新连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.