New: Set busy timeout for SQLite

This commit is contained in:
Bogdan 2023-10-29 00:52:30 +03:00 committed by GitHub
parent ba447c93e3
commit 192eb7b62a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -44,11 +44,12 @@ namespace NzbDrone.Core.Datastore
var connectionBuilder = new SQLiteConnectionStringBuilder
{
DataSource = dbPath,
CacheSize = (int)-10000,
CacheSize = (int)-20000,
DateTimeKind = DateTimeKind.Utc,
JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal,
Pooling = true,
Version = 3
Version = 3,
BusyTimeout = 100
};
if (OsInfo.IsOsx)