aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowghost <Shadowghost@users.noreply.github.com>2024-06-05 17:02:58 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-06-05 17:02:58 -0400
commitaeb0aded91d4798317c7632399780f101d840a8e (patch)
treeb62fab5f4223b9e443c594f765de4eef2e80563e
parentc554321495b5cf9d4a3e451ba2e68020770e3aed (diff)
Backport pull request #11943 from jellyfin/release-10.9.z
Increase lyrics migration batch size to 5000 Original-merge: 2a3c904a9f3dbad9086052ede59fa03bdc3f7d69 Merged-by: joshuaboniface <joshua@boniface.me> Backported-by: Joshua M. Boniface <joshua@boniface.me>
-rw-r--r--Jellyfin.Server/Migrations/Routines/FixAudioData.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/FixAudioData.cs b/Jellyfin.Server/Migrations/Routines/FixAudioData.cs
index 74f7e9c3e..a20253369 100644
--- a/Jellyfin.Server/Migrations/Routines/FixAudioData.cs
+++ b/Jellyfin.Server/Migrations/Routines/FixAudioData.cs
@@ -55,8 +55,9 @@ namespace Jellyfin.Server.Migrations.Routines
{
try
{
+ _logger.LogInformation("Backing up {Library} to {BackupPath}", DbFilename, bakPath);
File.Copy(dbPath, bakPath);
- _logger.LogInformation("Library database backed up to {BackupPath}", bakPath);
+ _logger.LogInformation("{Library} backed up to {BackupPath}", DbFilename, bakPath);
break;
}
catch (Exception ex)
@@ -80,7 +81,7 @@ namespace Jellyfin.Server.Migrations.Routines
{
IncludeItemTypes = [BaseItemKind.Audio],
StartIndex = startIndex,
- Limit = 100,
+ Limit = 5000,
SkipDeserialization = true
})
.Cast<Audio>()
@@ -97,7 +98,8 @@ namespace Jellyfin.Server.Migrations.Routines
}
_itemRepository.SaveItems(results, CancellationToken.None);
- startIndex += 100;
+ startIndex += results.Count;
+ _logger.LogInformation("Backfilled data for {UpdatedRecords} of {TotalRecords} audio records", startIndex, records);
}
}
}