remove unsafe sqlite options, increase busy_timeout

This commit is contained in:
pypy
2020-11-01 21:15:50 +09:00
parent af2b09fdd6
commit c2a0250be9
+1 -1
View File
@@ -21,7 +21,7 @@ namespace VRCX
public static void Init() public static void Init()
{ {
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "VRCX.sqlite3"); var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "VRCX.sqlite3");
m_Connection = new SQLiteConnection($"Data Source=\"{path}\";Version=3;PRAGMA locking_mode=NORMAL;PRAGMA cache_size=10000;PRAGMA temp_store=MEMORY;PRAGMA synchronous=OFF;PRAGMA journal_mode=MEMORY;PRAGMA busy_timeout=1000", true); m_Connection = new SQLiteConnection($"Data Source=\"{path}\";Version=3;PRAGMA locking_mode=NORMAL;PRAGMA busy_timeout=5000", true);
m_Connection.Open(); m_Connection.Open();
} }