mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Merge pull request #4036 from ApliNi/v3.0
Fix SQLite database size keeps increasing
This commit is contained in:
commit
06fbcb8d3d
@ -533,6 +533,7 @@ public class SQLiteMapStorage extends MapStorage {
|
|||||||
|
|
||||||
private static Connection configureConnection(Connection conn) throws SQLException {
|
private static Connection configureConnection(Connection conn) throws SQLException {
|
||||||
final Statement statement = conn.createStatement();
|
final Statement statement = conn.createStatement();
|
||||||
|
statement.execute("PRAGMA auto_vacuum = FULL;");
|
||||||
statement.execute("PRAGMA journal_mode = WAL;");
|
statement.execute("PRAGMA journal_mode = WAL;");
|
||||||
statement.close();
|
statement.close();
|
||||||
return conn;
|
return conn;
|
||||||
|
Loading…
Reference in New Issue
Block a user