Set pool size

This commit is contained in:
carbotaniuman 2021-02-20 18:16:24 -06:00
parent 1a0460edcd
commit 964b97b1d5
1 changed files with 1 additions and 0 deletions

View File

@ -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")