MySQL Forums
Forum List  »  Connector/Python

Connection 2 seconds
Posted by: TINGTING GU
Date: February 13, 2019 08:43PM

I have encountered a problem during using DBUtils, pymysql

I have tried use PersistentDB with configs like
_pool = PersistentDb(
"creator": pymysql,
"host": X
"port": X,
"closeable": False,
"threadlocal": None,
"connect_timeout": 10
"read_timeout": 2
"write_timeout": 5)

When I try execute _pool.connection()
sometimes the connection will cost 2 seconds randomly.




Can anyone help me to solve this problem?

Options: ReplyQuote


Subject
Written By
Posted
Connection 2 seconds
February 13, 2019 08:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.