mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Adds the SSD content setting to the library model and persistence
Stores whether the content of a library is on a solid state drive, off by default, so scans can choose between parallel and sequential reads.
This commit is contained in:
1 parent
6e77cf3302
commit
6eac3d578e
6 files changed
+3962
No files matched your search
+15
@@ -76,6 +76,12 @@ public class Library : AggregateRoot<LibraryId>
|
||||
/// </summary>
|
||||
public bool ShouldSkipUnchangedDirectoriesDuringScan { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the content of this media library is stored on a solid state drive. When it is, the file discovery and content hashing stages read the files in parallel,
|
||||
/// which takes advantage of the low latency of solid state drives. Mechanical hard drives keep those reads sequential, because parallel reads can reduce their throughput.
|
||||
/// </summary>
|
||||
public bool IsContentOnSsd { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the consumption settings of the media library.
|
||||
/// </summary>
|
||||
@@ -111,6 +117,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
/// <param name="canDownloadMetadataFromWeb">Whether this media library should update the metadata of its elements from the web, or not.</param>
|
||||
/// <param name="shouldSaveMetadataInMediaDirectories">Whether this media library should copy the downloaded metadata into the media library content locations, or not.</param>
|
||||
/// <param name="shouldSkipUnchangedDirectoriesDuringScan">Whether this media library should skip the directories whose contents have not changed since the last scan, during the scan, or not.</param>
|
||||
/// <param name="isContentOnSsd">Whether the content of this media library is stored on a solid state drive.</param>
|
||||
/// <param name="consumptionSettings">The consumption settings of the media library.</param>
|
||||
/// <param name="pathTemplate">The template describing the structure of the media library on disk.</param>
|
||||
/// <param name="scanIds">The list of objects representing the unique identifier of scans of the media library.</param>
|
||||
@@ -126,6 +133,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
bool canDownloadMetadataFromWeb,
|
||||
bool shouldSaveMetadataInMediaDirectories,
|
||||
bool shouldSkipUnchangedDirectoriesDuringScan,
|
||||
bool isContentOnSsd,
|
||||
LibraryConsumptionSettings consumptionSettings,
|
||||
LibraryPathTemplate pathTemplate,
|
||||
List<ScanId> scanIds) : base(id)
|
||||
@@ -140,6 +148,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
CanDownloadMetadataFromWeb = canDownloadMetadataFromWeb;
|
||||
ShouldSaveMetadataInMediaDirectories = shouldSaveMetadataInMediaDirectories;
|
||||
ShouldSkipUnchangedDirectoriesDuringScan = shouldSkipUnchangedDirectoriesDuringScan;
|
||||
IsContentOnSsd = isContentOnSsd;
|
||||
ConsumptionSettings = consumptionSettings;
|
||||
PathTemplate = pathTemplate;
|
||||
_scanIds = scanIds;
|
||||
@@ -158,6 +167,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
/// <param name="canDownloadMetadataFromWeb">Whether this media library should update the metadata of its elements from the web, or not.</param>
|
||||
/// <param name="shouldSaveMetadataInMediaDirectories">Whether this media library should copy the downloaded metadata into the media library content locations, or not.</param>
|
||||
/// <param name="shouldSkipUnchangedDirectoriesDuringScan">Whether this media library should skip the directories whose contents have not changed since the last scan, during the scan, or not.</param>
|
||||
/// <param name="isContentOnSsd">Whether the content of this media library is stored on a solid state drive.</param>
|
||||
/// <param name="consumptionSettings">The consumption settings of the media library.</param>
|
||||
/// <param name="pathTemplate">The template describing the structure of the media library on disk.</param>
|
||||
/// <param name="scanIds">The list of objects representing the unique identifier of scans of the media library.</param>
|
||||
@@ -175,6 +185,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
bool canDownloadMetadataFromWeb,
|
||||
bool shouldSaveMetadataInMediaDirectories,
|
||||
bool shouldSkipUnchangedDirectoriesDuringScan,
|
||||
bool isContentOnSsd,
|
||||
LibraryConsumptionSettings consumptionSettings,
|
||||
LibraryPathTemplate pathTemplate,
|
||||
List<ScanId> scanIds)
|
||||
@@ -200,6 +211,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
canDownloadMetadataFromWeb,
|
||||
shouldSaveMetadataInMediaDirectories,
|
||||
shouldSkipUnchangedDirectoriesDuringScan,
|
||||
isContentOnSsd,
|
||||
consumptionSettings,
|
||||
pathTemplate,
|
||||
scanIds
|
||||
@@ -220,6 +232,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
/// <param name="canDownloadMetadataFromWeb">Whether this media library should update the metadata of its elements from the web, or not.</param>
|
||||
/// <param name="shouldSaveMetadataInMediaDirectories">Whether this media library should copy the downloaded metadata into the media library content locations, or not.</param>
|
||||
/// <param name="shouldSkipUnchangedDirectoriesDuringScan">Whether this media library should skip the directories whose contents have not changed since the last scan, during the scan, or not.</param>
|
||||
/// <param name="isContentOnSsd">Whether the content of this media library is stored on a solid state drive.</param>
|
||||
/// <param name="consumptionSettings">The consumption settings of the media library.</param>
|
||||
/// <param name="pathTemplate">The template describing the structure of the media library on disk.</param>
|
||||
/// <param name="scanIds">The list of objects representing the unique identifier of scans of the media library.</param>
|
||||
@@ -238,6 +251,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
bool canDownloadMetadataFromWeb,
|
||||
bool shouldSaveMetadataInMediaDirectories,
|
||||
bool shouldSkipUnchangedDirectoriesDuringScan,
|
||||
bool isContentOnSsd,
|
||||
LibraryConsumptionSettings consumptionSettings,
|
||||
LibraryPathTemplate pathTemplate,
|
||||
List<ScanId> scanIds)
|
||||
@@ -263,6 +277,7 @@ public class Library : AggregateRoot<LibraryId>
|
||||
canDownloadMetadataFromWeb,
|
||||
shouldSaveMetadataInMediaDirectories,
|
||||
shouldSkipUnchangedDirectoriesDuringScan,
|
||||
isContentOnSsd,
|
||||
consumptionSettings,
|
||||
pathTemplate,
|
||||
scanIds
|
||||
|
||||
Reference in new issue
Block a user