From 14bb3e8889f4a9e46ee0acf639e3b73c76d3af58 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Sat, 9 Aug 2025 15:36:48 +0200 Subject: [PATCH] feat(legacy): persist database connections (#3186) ### Description Persist the database connection to reduce the load on Postgresql, and improve performances. https://www.php.net/manual/en/pdo.connections.php https://www.php.net/manual/en/pdo.constants.php#pdo.constants.attr-persistent --- legacy/application/configs/airtime-conf-production.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/application/configs/airtime-conf-production.php b/legacy/application/configs/airtime-conf-production.php index ea1ec1dc1..c76d8188c 100644 --- a/legacy/application/configs/airtime-conf-production.php +++ b/legacy/application/configs/airtime-conf-production.php @@ -23,6 +23,9 @@ $conf = [ 'adapter' => 'pgsql', 'connection' => [ 'dsn' => "pgsql:host={$dbhost};port={$dbport};dbname={$dbname};user={$dbuser};password={$dbpass}", + 'options' => [ + 'ATTR_PERSISTENT' => true, + ], ], ], 'default' => 'airtime',