From 35d46d2913a7dc3855f4d45a1581644064f04631 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Mon, 10 Dec 2018 12:28:43 -0500 Subject: [PATCH] Use persistent connections with PostgreSQL --- lib/Db/PostgreSQL/PDODriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/PostgreSQL/PDODriver.php b/lib/Db/PostgreSQL/PDODriver.php index 37763dd4..d6d44769 100644 --- a/lib/Db/PostgreSQL/PDODriver.php +++ b/lib/Db/PostgreSQL/PDODriver.php @@ -24,7 +24,7 @@ class PDODriver extends Driver { $dsn = $this->makeconnectionString(true, $user, $pass, $db, $host, $port, $service); $this->db = new \PDO("pgsql:$dsn", $user, $pass, [ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, - //\PDO::ATTR_PERSISTENT => true, + \PDO::ATTR_PERSISTENT => true, ]); }