Increase sqlite busy timeout

This commit is contained in:
AsamK 2022-10-29 13:54:06 +02:00
parent 25e84f2f5d
commit 49aaff2bbe

View file

@ -90,7 +90,7 @@ public abstract class Database implements AutoCloseable {
private static HikariDataSource getHikariDataSource(final String databaseFile) { private static HikariDataSource getHikariDataSource(final String databaseFile) {
final var sqliteConfig = new SQLiteConfig(); final var sqliteConfig = new SQLiteConfig();
sqliteConfig.setBusyTimeout(10_000); sqliteConfig.setBusyTimeout(60_000);
sqliteConfig.setTransactionMode(SQLiteConfig.TransactionMode.IMMEDIATE); sqliteConfig.setTransactionMode(SQLiteConfig.TransactionMode.IMMEDIATE);
HikariConfig config = new HikariConfig(); HikariConfig config = new HikariConfig();