mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
Merge pull request #1917 from MediaBrowser/dev
update default cache size
This commit is contained in:
commit
ebc37b8d37
@ -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;
|
||||
|
@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
|
||||
protected override async Task<IDbConnection> CreateConnection(bool isReadOnly = false)
|
||||
{
|
||||
var cacheSize = _config.Configuration.SqliteCacheSizeKb;
|
||||
var cacheSize = _config.Configuration.SqliteCacheSize;
|
||||
if (cacheSize <= 0)
|
||||
{
|
||||
cacheSize = Math.Min(Environment.ProcessorCount * 50000, 200000);
|
||||
|
Loading…
Reference in New Issue
Block a user