mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Set pool size
This commit is contained in:
parent
1a0460edcd
commit
964b97b1d5
|
@ -70,6 +70,7 @@ class MangaDexClient(private val settingsFile: File, databaseFolder: Path, cache
|
|||
val config = HikariConfig()
|
||||
val db = databaseFolder.resolve("metadata.db")
|
||||
config.jdbcUrl = "jdbc:sqlite:$db"
|
||||
config.maximumPoolSize = 1
|
||||
config.addDataSourceProperty("cachePrepStmts", "true")
|
||||
config.addDataSourceProperty("prepStmtCacheSize", "100")
|
||||
config.addDataSourceProperty("prepStmtCacheSqlLimit", "1000")
|
||||
|
|
Loading…
Reference in a new issue