Изменил настройку бд
This commit is contained in:
parent
9aec62bbf9
commit
150a6ee2a8
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ else:
|
|||
DATABASE_URL = f"""postgresql+asyncpg://{settings.DB_USER}:
|
||||
{settings.DB_PASS}@{settings.DB_HOST}:
|
||||
{settings.DB_PORT}/{settings.DB_NAME}"""
|
||||
DATABASE_PARAMS = {}
|
||||
DATABASE_PARAMS = {"pool_size": 50, "pool_pre_ping": True}
|
||||
|
||||
engine = create_async_engine(DATABASE_URL, **DATABASE_PARAMS)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue