Increase library scan and metadata refresh speed

This commit is contained in:
Gary Wilber
2020-09-30 19:33:34 -07:00
parent c7b3d4a90c
commit c2276b17cb
4 changed files with 283 additions and 83 deletions

View File

@@ -271,6 +271,16 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
public string[] KnownProxies { get; set; }
/// <summary>
/// Gets or sets the how the library scan fans out.
/// </summary>
public int LibraryScanFanoutConcurrency { get; set; }
/// <summary>
/// Gets or sets the how many metadata refreshes can run concurrently.
/// </summary>
public int LibraryMetadataRefreshConcurrency { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
@@ -381,6 +391,8 @@ namespace MediaBrowser.Model.Configuration
SlowResponseThresholdMs = 500;
CorsHosts = new[] { "*" };
KnownProxies = Array.Empty<string>();
LibraryMetadataRefreshConcurrency = 0;
LibraryScanFanoutConcurrency = 0;
}
}