mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-31 03:01:58 +01:00
Increase database conection pool size.
This commit is contained in:
1 parent
d1c7984aea
commit
b279ddd88e
1 file changed
+1
-1
@@ -7,7 +7,7 @@ from meshview import models
|
||||
|
||||
def init_database(database_connetion_string):
|
||||
global engine, async_session
|
||||
engine = create_async_engine(database_connetion_string, echo=False)
|
||||
engine = create_async_engine(database_connetion_string, echo=False, pool_size=20, max_overflow=50)
|
||||
async_session = async_sessionmaker(engine, expire_on_commit=False)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user