mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Tweak hikari config
This commit is contained in:
parent
e1f4dae5c2
commit
d3d2caac5a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue