From 8a8bdecc7c1e914a2f9616eb9ff531b132389446 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sun, 9 Aug 2026 05:05:18 -0700 Subject: [PATCH] Increases the SQLite busy timeout to 30 seconds Raises the busy timeout used when opening the SQLite connection from 10 to 30 seconds, so that the Entity Framework connection and the dedicated connections used by the bulk data access operations of Dapper keep retrying for longer instead of failing with database locking errors during concurrent access. --- src/Lumina.Presentation.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lumina.Presentation.Api/Program.cs b/src/Lumina.Presentation.Api/Program.cs index 35fb28a5..3e3482bb 100644 --- a/src/Lumina.Presentation.Api/Program.cs +++ b/src/Lumina.Presentation.Api/Program.cs @@ -93,7 +93,7 @@ public class Program SqliteConnection sqliteConnection = new(context.Database.GetDbConnection().ConnectionString); sqliteConnection.Open(); using SqliteCommand sqliteCommand = sqliteConnection.CreateCommand(); - sqliteCommand.CommandText = "PRAGMA journal_mode=WAL; PRAGMA busy_timeout=10000;"; + sqliteCommand.CommandText = "PRAGMA journal_mode=WAL; PRAGMA busy_timeout=30000;"; sqliteCommand.ExecuteNonQuery(); sqliteConnection.Close(); }