In normal HTTP communication, the client always initiates the data transfer by opening a connection to the server and sending a request.
在普通HTTP通信中,客户端始终通过打开到服务器的连接并发送请求来发起数据传输。
Please note that more connections means more memory and also note that opening/closing a connection consumes CPU time.
请注意,更多的连接意味着更多的内存。 还要注意,打开/关闭连接将消耗 CPU 时间。
Since opening and closing the connection is the most expensive part of interacting with a database, you will want to pool and reuse your database connection.
因为在于数据库交互时,打开以及关闭数据库的开销是非常昂贵的,您应该将您的数据库连接放在池中并且能重新使用。
应用推荐