Releases: jkklee/pymysql-pool
Releases · jkklee/pymysql-pool
v0.4.6
an improved version
- Add more friendly methods of Cursor object: db_query() and db_modify().
- Add logic to prevent reuse of a connection object that has already returned to the pool.
- change pool.size to pool.available_num & pool.connection_num to pool.total_num.
- More reasonable logger settings.
a more performance version
New designed pool model(use deque instead of queue.Queue), almost 20x performance when doing borrowing and returning actions.
Breaking changes: change the parameter max_size
to maxsize
in the init function of the ConnectPool class.
a more flexible and robustness version
- rewrite the init function of ConnectionPool:
1.1 remove hard limit of the pool
1.2 add argcon_lifetime
for resolve server side close due to the 'wait_timeout' variable; and used for pool scalability
1.3 add argpre_create_num
indicate that is create some connection ad init phase - enhance the robustness of the 'put connection back to pool' function
- expose a stats of used and available connections at the point, via the
connection_num
property