diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/Database.java b/lib/src/main/java/org/asamk/signal/manager/storage/Database.java index 5099662e..1d84daef 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/Database.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/Database.java @@ -98,6 +98,9 @@ public abstract class Database implements AutoCloseable { config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON&journal_mode=wal"); config.setDataSourceProperties(sqliteConfig.toProperties()); config.setMinimumIdle(1); + config.setConnectionTimeout(90_000); + config.setMaximumPoolSize(50); + config.setMaxLifetime(0); return new HikariDataSource(config); } }