add config setting
This commit is contained in:
parent
b445948ebf
commit
4a95ec28f2
|
@ -192,6 +192,7 @@ namespace MediaBrowser.Model.Configuration
|
|||
|
||||
public int MigrationVersion { get; set; }
|
||||
public int SchemaVersion { get; set; }
|
||||
public int SqliteCachePages { get; set; }
|
||||
|
||||
public bool DownloadImagesInAdvance { get; set; }
|
||||
|
||||
|
@ -211,6 +212,7 @@ namespace MediaBrowser.Model.Configuration
|
|||
{
|
||||
LocalNetworkAddresses = new string[] { };
|
||||
Migrations = new string[] { };
|
||||
SqliteCachePages = 10000;
|
||||
|
||||
EnableCustomPathSubFolders = true;
|
||||
EnableLocalizedGuids = true;
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
|
||||
protected override async Task<IDbConnection> CreateConnection(bool isReadOnly = false)
|
||||
{
|
||||
var connection = await DbConnector.Connect(DbFilePath, false, false, 10000).ConfigureAwait(false);
|
||||
var connection = await DbConnector.Connect(DbFilePath, false, false, _config.Configuration.SqliteCachePages).ConfigureAwait(false);
|
||||
|
||||
connection.RunQueries(new[]
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user