perf: 优化数据库连接与笔记预览加载性能
This commit is contained in:
@@ -14,14 +14,16 @@ spring:
|
||||
maximum-pool-size: 20
|
||||
# 连接空闲超时时间(毫秒)
|
||||
idle-timeout: 300000
|
||||
# 连接最大存活时间(毫秒)
|
||||
max-lifetime: 1200000
|
||||
# 连接最大存活时间(毫秒)- 设置为小于MySQL的wait_timeout(默认8小时)
|
||||
max-lifetime: 600000
|
||||
# 连接超时时间(毫秒)
|
||||
connection-timeout: 20000
|
||||
# 测试连接是否可用的SQL
|
||||
connection-test-query: SELECT 1
|
||||
# 自动提交
|
||||
auto-commit: true
|
||||
# 连接测试间隔
|
||||
keepalive-time: 300000
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
|
||||
@@ -14,14 +14,16 @@ spring:
|
||||
maximum-pool-size: 50
|
||||
# 连接空闲超时时间(毫秒)
|
||||
idle-timeout: 600000
|
||||
# 连接最大存活时间(毫秒)
|
||||
max-lifetime: 1800000
|
||||
# 连接最大存活时间(毫秒)- 设置为小于MySQL的wait_timeout(默认8小时)
|
||||
max-lifetime: 600000
|
||||
# 连接超时时间(毫秒)
|
||||
connection-timeout: 30000
|
||||
# 测试连接是否可用的SQL
|
||||
connection-test-query: SELECT 1
|
||||
# 自动提交
|
||||
auto-commit: true
|
||||
# 连接测试间隔
|
||||
keepalive-time: 300000
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
|
||||
Reference in New Issue
Block a user