From c2a0250be94be354b784e46a66e905f9d6af7dfe Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 1 Nov 2020 21:15:50 +0900 Subject: [PATCH] remove unsafe sqlite options, increase busy_timeout --- SQLite.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQLite.cs b/SQLite.cs index b502c874..47f76a39 100644 --- a/SQLite.cs +++ b/SQLite.cs @@ -21,7 +21,7 @@ namespace VRCX public static void Init() { 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(); }