Skip to content

Commit

Permalink
Enable sqlite WAL journal_mode
Browse files Browse the repository at this point in the history
Related #1670
  • Loading branch information
AsamK committed Jan 14, 2025
1 parent 74c2604 commit e11e093
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static HikariDataSource getHikariDataSource(final String databaseFile) {
sqliteConfig.setTransactionMode(SQLiteConfig.TransactionMode.IMMEDIATE);

HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON");
config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON&journal_mode=wal");
config.setDataSourceProperties(sqliteConfig.toProperties());
config.setMinimumIdle(1);
return new HikariDataSource(config);
Expand Down

0 comments on commit e11e093

Please sign in to comment.