qicosmos / ormpp

modern C++ ORM, C++17, support mysql, postgresql,sqlite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The memory usage is a little high

xl95988 opened this issue · comments

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

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

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.