diff --git a/Dotnet/SQLiteLegacy.cs b/Dotnet/SQLiteLegacy.cs index f9be6003..a094ccfb 100644 --- a/Dotnet/SQLiteLegacy.cs +++ b/Dotnet/SQLiteLegacy.cs @@ -30,7 +30,7 @@ namespace VRCX if (!string.IsNullOrEmpty(jsonDataSource)) dataSource = jsonDataSource; - m_Connection = new SQLiteConnection($"Data Source=\"{dataSource}\";Version=3;PRAGMA locking_mode=NORMAL;PRAGMA busy_timeout=5000", true); + m_Connection = new SQLiteConnection($"Data Source=\"{dataSource}\";Version=3;PRAGMA locking_mode=NORMAL;PRAGMA busy_timeout=5000;PRAGMA journal_mode=WAL;", true); m_Connection.Open(); } diff --git a/html/src/app.js b/html/src/app.js index d0f50853..d1d09e40 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -27599,7 +27599,6 @@ speechSynthesis.getVoices(); await database.fixBrokenGroupChange(); // fix spam group left & name change await database.fixCancelFriendRequestTypo(); // fix CancelFriendRequst typo await database.vacuum(); // succ - await database.setWal(); // https://www.sqlite.org/wal.html await configRepository.setInt( 'VRCX_databaseVersion', databaseVersion diff --git a/html/src/repository/database.js b/html/src/repository/database.js index 799ccbf9..53e0bec9 100644 --- a/html/src/repository/database.js +++ b/html/src/repository/database.js @@ -2620,10 +2620,6 @@ class Database { await sqliteService.executeNonQuery('VACUUM'); } - async setWal() { - await sqliteService.executeNonQuery('PRAGMA journal_mode=WAL'); - } - async getInstanceJoinHistory() { var oneWeekAgo = new Date(Date.now() - 604800000).toJSON(); var instances = new Map();