From fcc64173f6528e5252079f870afbc5d80bd90bb5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 3 Jul 2016 20:14:28 -0400 Subject: [PATCH] update default cache size --- MediaBrowser.Model/Configuration/ServerConfiguration.cs | 4 ++-- .../Persistence/SqliteItemRepository.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 6031ae88e..081c46f0a 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -192,7 +192,7 @@ namespace MediaBrowser.Model.Configuration public int MigrationVersion { get; set; } public int SchemaVersion { get; set; } - public int SqliteCacheSizeKb { get; set; } + public int SqliteCacheSize { get; set; } public bool DownloadImagesInAdvance { get; set; } @@ -212,7 +212,7 @@ namespace MediaBrowser.Model.Configuration { LocalNetworkAddresses = new string[] { }; Migrations = new string[] { }; - SqliteCacheSizeKb = 50000; + SqliteCacheSize = 0; EnableCustomPathSubFolders = true; EnableLocalizedGuids = true; diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs index d1b23a0ae..5b492c240 100644 --- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs +++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs @@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.Persistence protected override async Task CreateConnection(bool isReadOnly = false) { - var cacheSize = _config.Configuration.SqliteCacheSizeKb; + var cacheSize = _config.Configuration.SqliteCacheSize; if (cacheSize <= 0) { cacheSize = Math.Min(Environment.ProcessorCount * 50000, 200000);