mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-23 04:52:35 +01:00
Fix database connection and errors (#1681)
This commit is contained in:
@@ -64,11 +64,11 @@ object DBManager {
|
|||||||
|
|
||||||
// Optimized for Raspberry Pi / Low memory environments
|
// Optimized for Raspberry Pi / Low memory environments
|
||||||
maximumPoolSize = 6 // Moderate pool for better concurrency
|
maximumPoolSize = 6 // Moderate pool for better concurrency
|
||||||
minimumIdle = 2 // Keep 2 idle connections for responsiveness
|
|
||||||
connectionTimeout = 45.seconds.inWholeMilliseconds // more tolerance for slow devices
|
connectionTimeout = 45.seconds.inWholeMilliseconds // more tolerance for slow devices
|
||||||
idleTimeout = 5.minutes.inWholeMilliseconds // close idle connections faster
|
idleTimeout = 5.minutes.inWholeMilliseconds // close idle connections faster
|
||||||
maxLifetime = 15.minutes.inWholeMilliseconds // recycle connections more often
|
maxLifetime = 15.minutes.inWholeMilliseconds // recycle connections more often
|
||||||
leakDetectionThreshold = 1.minutes.inWholeMilliseconds
|
leakDetectionThreshold = 1.minutes.inWholeMilliseconds
|
||||||
|
isAutoCommit = false
|
||||||
|
|
||||||
// Pool name for monitoring
|
// Pool name for monitoring
|
||||||
poolName = "Suwayomi-DB-Pool"
|
poolName = "Suwayomi-DB-Pool"
|
||||||
|
|||||||
Reference in New Issue
Block a user