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
This commit is contained in:
Jonas L. 2025-08-09 15:36:48 +02:00 committed by GitHub
parent 9d3a88093e
commit 14bb3e8889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',