What really is connection pooling?

后端 未结 6 911
灰色年华
灰色年华 2021-02-01 18:49

I have heard the term connection pooling and looked for some references by googling it... But can\'t get the idea when to use it....

  • When should i consider usin

6条回答
  •  -上瘾入骨i
    2021-02-01 19:06

    connection pooling enables re-use of an existing, but not used database connection. by using it you eliminate the overhead of the connection/disconnection to the database server. it provides a significant performance boost in most cases. the only reason i can think of not to use it is if your software won't be connecting frequently enough to keep the connections alive or if there's some bug in the pooling layer.

提交回复
热议问题