From 82500ca0793c183c38fd888d244a5aeaf44e8517 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 23 Jan 2020 17:51:32 +0100 Subject: [PATCH] :sparkles: Start using normal pool (instead of thread local) for db. --- backend/src/uxbox/db.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/uxbox/db.clj b/backend/src/uxbox/db.clj index 04d09681a..a32fd107e 100644 --- a/backend/src/uxbox/db.clj +++ b/backend/src/uxbox/db.clj @@ -15,8 +15,7 @@ [uxbox.core :refer [system]] [uxbox.util.data :as data] [uxbox.util.pgsql :as pg] - [vertx.core :as vx]) - (:import io.vertx.core.buffer.Buffer)) + [vertx.core :as vx])) (defn- create-pool [config system] @@ -28,7 +27,7 @@ (assoc :password password) (str))] (log/info "creating connection pool with" dburi) - (pg/tl-pool dburi {:system system}))) + (pg/pool dburi {:system system :max-size 8}))) (defstate pool :start (create-pool cfg/config system))