Skip to content

Commit 06fbcb8

Browse files
authored
Merge pull request #4036 from ApliNi/v3.0
Fix SQLite database size keeps increasing
2 parents b181607 + 5244e74 commit 06fbcb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DynmapCore/src/main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ private Connection getConnection() throws SQLException, StorageShutdownException
533533

534534
private static Connection configureConnection(Connection conn) throws SQLException {
535535
final Statement statement = conn.createStatement();
536+
statement.execute("PRAGMA auto_vacuum = FULL;");
536537
statement.execute("PRAGMA journal_mode = WAL;");
537538
statement.close();
538539
return conn;

0 commit comments

Comments
 (0)