Tweak hikari config

This commit is contained in:
AsamK 2025-02-27 14:52:28 +01:00
parent e1f4dae5c2
commit d3d2caac5a

View file

@ -98,6 +98,9 @@ public abstract class Database implements AutoCloseable {
config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON&journal_mode=wal"); config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON&journal_mode=wal");
config.setDataSourceProperties(sqliteConfig.toProperties()); config.setDataSourceProperties(sqliteConfig.toProperties());
config.setMinimumIdle(1); config.setMinimumIdle(1);
config.setConnectionTimeout(90_000);
config.setMaximumPoolSize(50);
config.setMaxLifetime(0);
return new HikariDataSource(config); return new HikariDataSource(config);
} }
} }