From bbe6307a9bb714f004854c446277affe205f1373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20Eifl=C3=A4nder?= Date: Wed, 18 Oct 2023 16:22:07 +0200 Subject: [PATCH] RED-7775: Named database connections, removed idle connections --- src/main/resources/application.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 068b0eb..6e460c9 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -15,14 +15,13 @@ server: spring: datasource: - url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true + url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?ApplicationName=${spring.application.name:}&cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true driverClassName: org.postgresql.Driver username: ${PSQL_USERNAME:fforesight} password: ${PSQL_PASSWORD:fforesight} platform: org.hibernate.dialect.PostgreSQL95Dialect hikari: maximumPoolSize: 2 - minimum-idle: 2 data-source-properties: cachePrepStmts: true prepStmtCacheSize: 1000