From f33a2c0bb922b920fd9524cb3a98bc7349070268 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:01:15 -0300 Subject: [PATCH] perf(db): :zap: Increase `max_connections` to 1000. --- .vscode/settings.json | 2 +- compose.yml | 2 +- payphone/core/config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f48928..fdbc9ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "conventionalCommits.scopes": ["bot"] + "conventionalCommits.scopes": ["bot", "db"] } diff --git a/compose.yml b/compose.yml index c0d52a4..aaedd18 100644 --- a/compose.yml +++ b/compose.yml @@ -19,7 +19,7 @@ services: - POSTGRES_PASSWORD=payphone volumes: - database:/var/lib/postgresql/data - command: postgres -c 'max_connections=500' + command: postgres -c 'max_connections=1000' restart: always redis: diff --git a/payphone/core/config.py b/payphone/core/config.py index dcb7a92..923a280 100644 --- a/payphone/core/config.py +++ b/payphone/core/config.py @@ -19,7 +19,7 @@ TORTOISE_ORM = { } }, "minsize": 5, - "maxsize": 500 + "maxsize": 1000 } SUGGESTIONS_CHANNEL_ID = int(os.getenv("SUGGESTIONS_CHANNEL_ID"))