From 52abe07aef24024198f30cef5bd1aad9680b90cb Mon Sep 17 00:00:00 2001 From: dongHyo Date: Mon, 2 May 2022 18:04:40 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20db=20=EC=84=A4=EC=A0=95=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hikariCP, MySQL properties 설정 정보 추가 --- server/src/main/resources/application.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index 4ae614d..e871038 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -8,4 +8,20 @@ spring: jpa: hibernate: ddl-auto: validate - \ No newline at end of file + + datasource: + hikari: + connection-timeout: 30000 # default 30s + maximum-pool-size: 10 # default 10 + max-lifetime: 1800000 # default 30 minutes + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 250 + prepStmtCacheSqlLimit: 2048 + useServerPrepStmts: true + useLocalSessionState: true + rewriteBatchedStatements: true + cacheResultSetMetadata: true + cacheServerConfiguration: true + elideSetAutoCommits: true + maintainTimeStats: false