Skip to content

Commit

Permalink
Merge pull request #4036 from ApliNi/v3.0
Browse files Browse the repository at this point in the history
Fix SQLite database size keeps increasing
  • Loading branch information
mikeprimm authored Dec 12, 2023
2 parents b181607 + 5244e74 commit 06fbcb8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ private Connection getConnection() throws SQLException, StorageShutdownException

private static Connection configureConnection(Connection conn) throws SQLException {
final Statement statement = conn.createStatement();
statement.execute("PRAGMA auto_vacuum = FULL;");
statement.execute("PRAGMA journal_mode = WAL;");
statement.close();
return conn;
Expand Down

0 comments on commit 06fbcb8

Please sign in to comment.