dburl fix
This commit is contained in:
parent
10a01057ee
commit
83f29087a0
14
orm/base.py
14
orm/base.py
|
@ -9,12 +9,14 @@ from settings import DB_URL
|
||||||
from orm._retry import RetryingQuery
|
from orm._retry import RetryingQuery
|
||||||
|
|
||||||
# engine = create_engine(DB_URL, convert_unicode=True, echo=False)
|
# engine = create_engine(DB_URL, convert_unicode=True, echo=False)
|
||||||
engine = create_engine(connection_string,
|
engine = create_engine(DB_URL,
|
||||||
pool_size=10,
|
convert_unicode=True,
|
||||||
max_overflow=2,
|
echo=False
|
||||||
pool_recycle=300,
|
pool_size=10,
|
||||||
pool_pre_ping=True,
|
max_overflow=2,
|
||||||
pool_use_lifo=True)
|
pool_recycle=300,
|
||||||
|
pool_pre_ping=True,
|
||||||
|
pool_use_lifo=True)
|
||||||
|
|
||||||
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine, query_cls=RetryingQuery)
|
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine, query_cls=RetryingQuery)
|
||||||
#Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
#Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user