Skip to content

Commit 1df9afe

Browse files
committed
update datasource config
1 parent 916f40a commit 1df9afe

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.idea/workspace.xml

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/application.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ spring:
6969
max-lifetime: 1800000
7070
connection-timeout: 30000
7171
pool-name: SupabasePool
72-
maximum-pool-size: 20
73-
minimum-idle: 10
72+
maximum-pool-size: 8 # 减小连接池大小
73+
minimum-idle: 2 # 减少空闲连接
7474
data-source-properties:
7575
preparedStatementCacheQueries: 0
7676
preparedStatementCacheSizeMiB: 0
7777
prepareThreshold: 0
78+
leak-detection-threshold: 30000 # 泄漏检测阈值(毫秒)
79+
validation-timeout: 5000 # 验证超时(毫秒)
80+
connection-test-query: SELECT 1 # 连接验证查询
7881

7982
jpa:
8083
properties:
@@ -198,4 +201,4 @@ d1:
198201
log-level: WARNING
199202

200203
scrapestack:
201-
access-key: ${SCRAPESTACK_ACCESS_KEY}
204+
access-key: ${SCRAPESTACK_ACCESS_KEY}

0 commit comments

Comments
 (0)