1
0
Fork 1
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:
carbotaniuman 2021-02-20 18:16:24 -06:00
parent 1a0460edcd
commit 964b97b1d5

View file

@ -70,6 +70,7 @@ class MangaDexClient(private val settingsFile: File, databaseFolder: Path, cache
val config = HikariConfig() val config = HikariConfig()
val db = databaseFolder.resolve("metadata.db") val db = databaseFolder.resolve("metadata.db")
config.jdbcUrl = "jdbc:sqlite:$db" config.jdbcUrl = "jdbc:sqlite:$db"
config.maximumPoolSize = 1
config.addDataSourceProperty("cachePrepStmts", "true") config.addDataSourceProperty("cachePrepStmts", "true")
config.addDataSourceProperty("prepStmtCacheSize", "100") config.addDataSourceProperty("prepStmtCacheSize", "100")
config.addDataSourceProperty("prepStmtCacheSqlLimit", "1000") config.addDataSourceProperty("prepStmtCacheSqlLimit", "1000")