ormpp icon indicating copy to clipboard operation
ormpp copied to clipboard

The memory usage is a little high

Open xl95988 opened this issue 1 year ago • 2 comments

G88L(5E{JY5YI}$}1NLWUM6 03EXKNH1U( LZL~`})EOXWL

xl95988 avatar Apr 21 '23 10:04 xl95988

死循环创建连接,会导致创建非常多的连接,因为内部发现如果连接池没有连接了,就会创建新的连接 https://github.com/qicosmos/ormpp/blob/master/include/connection_pool.hpp#L47

qicosmos avatar Apr 22 '23 01:04 qicosmos

I don't agree with you. I set four connections when initializing the connection pool, so 'https://github.com/qicosmos/ormpp/blob/master/include/connection_pool.hpp#L47' is never execute.

xl95988 avatar Apr 22 '23 06:04 xl95988