mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 05:43:51 +02:00
Move where wal is set
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user