mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Fixed: Excessive memory usage due to sqlite cache configuration.
ref #2296
This commit is contained in:
parent
9af57c6786
commit
270f04d2d2
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ namespace NzbDrone.Core.Datastore
|
|||
var connectionBuilder = new SQLiteConnectionStringBuilder();
|
||||
|
||||
connectionBuilder.DataSource = dbPath;
|
||||
connectionBuilder.CacheSize = (int)-10.Megabytes();
|
||||
connectionBuilder.CacheSize = (int)-10000;
|
||||
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
|
||||
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
||||
connectionBuilder.Pooling = true;
|
||||
|
|
Loading…
Reference in a new issue