Merge pull request #4036 from ApliNi/v3.0

Fix SQLite database size keeps increasing
This commit is contained in:
mikeprimm 2023-12-12 17:58:59 -06:00 committed by GitHub
commit 06fbcb8d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -533,6 +533,7 @@ public class SQLiteMapStorage extends MapStorage {
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;