Commit 9e28194e authored by shenshuo's avatar shenshuo

继续优化数据库连接

parent f2610957
......@@ -28,7 +28,7 @@ def init_engine(**settings):
dbname = db_conf[const.DBNAME_KEY]
engine = create_engine('mysql+pymysql://{user}:{pwd}@{host}:{port}/{dbname}?charset=utf8'
.format(user=dbuser, pwd=quote_plus(dbpwd), host=dbhost, port=dbport, dbname=dbname),
logging_name=dbkey, pool_size=20, pool_timeout=120)
logging_name=dbkey, pool_size=10)
engines[dbkey] = engine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment