From 5244e74d47bc465a99062bfdd69492ecefb6d9e7 Mon Sep 17 00:00:00 2001 From: ApliNi Date: Tue, 3 Oct 2023 18:31:51 +0800 Subject: [PATCH] PRAGMA auto_vacuum = FULL; --- .../main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/DynmapCore/src/main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java b/DynmapCore/src/main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java index e90d1f9f..07406178 100644 --- a/DynmapCore/src/main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java +++ b/DynmapCore/src/main/java/org/dynmap/storage/sqllte/SQLiteMapStorage.java @@ -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;