We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91c3fa7 + d07b256 commit 95a9928Copy full SHA for 95a9928
1 file changed
waffledotcom/src/database/connection.py
@@ -15,7 +15,10 @@
15
class DBSessionFactory(metaclass=SingletonMeta):
16
def __init__(self):
17
self._engine: sqlalchemy.Engine = sqlalchemy.create_engine(
18
- db_config.url, echo=settings.is_local
+ db_config.url,
19
+ echo=settings.is_local,
20
+ pool_recycle=28000,
21
+ pool_pre_ping=True,
22
)
23
self._session_maker = orm.sessionmaker(
24
bind=self._engine, expire_on_commit=False
0 commit comments