Skip to content

Commit

Permalink
fix: use WAL mode on SQLite with NORMAL concurrency, close #658
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Aug 22, 2024
1 parent 58245d4 commit 1c644b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ private void setConnection() {
SQLiteConfig config = new SQLiteConfig();
config.enforceForeignKeys(true);
config.setEncoding(SQLiteConfig.Encoding.UTF8);
config.setSynchronous(SQLiteConfig.SynchronousMode.FULL);
config.setJournalMode(SQLiteConfig.JournalMode.WAL);
config.setSynchronous(SQLiteConfig.SynchronousMode.NORMAL);

// Establish the connection
connection = DriverManager.getConnection(
Expand Down

0 comments on commit 1c644b1

Please sign in to comment.