Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion module/database/src/main/resources/datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ DefaultSettings:
# A value of 0 indicates no maximum lifetime (infinite lifetime), subject of course to the idleTimeout setting.
# The minimum allowed value is 30000ms (30 seconds). Default: 1800000 (30 minutes)
MaxLifetime: 1800000
# This property controls the keepalive interval for a connection in the pool. An in-use connection will never be
# tested by the keepalive thread, only when it is idle will it be tested.
# keepaliveTimeMs the interval in which connections will be tested for aliveness, thus keeping them alive by the act of checking. Value is in milliseconds, default is 0 (disabled).
KeepaliveTime: 300000
# If your driver supports JDBC4 we strongly recommend not setting this property.
# This is for "legacy" drivers that do not support the JDBC4 Connection.isValid() API.
# This is the query that will be executed just before a connection is given to you from the pool to validate that the connection to the database is still alive.
Expand All @@ -64,4 +68,4 @@ DefaultSettings:
cachePrepStmts: true
# Newer versions of MySQL support server-side prepared statements, this can provide a substantial performance boost.
# Set this property to true.
useServerPrepStmts: true
useServerPrepStmts: true
Loading