From 549df741fa9098c248b78f49bba50e04fa98c000 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Fri, 27 Dec 2024 10:25:07 +0800 Subject: [PATCH] perf: add POSTGRES_MAX_CONNECTIONS env. --- apps/smartdoc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/smartdoc/conf.py b/apps/smartdoc/conf.py index 8d2248bca..c303c1923 100644 --- a/apps/smartdoc/conf.py +++ b/apps/smartdoc/conf.py @@ -111,7 +111,7 @@ class Config(dict): "ENGINE": self.get('DB_ENGINE'), "POOL_OPTIONS": { "POOL_SIZE": 20, - "MAX_OVERFLOW": self.get('DB_MAX_OVERFLOW') + "MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')) } }