Ony load necessary References and Collections

This commit is contained in:
2025-05-18 15:16:55 +02:00
parent 84aecda916
commit 96d5b09391
6 changed files with 0 additions and 6 deletions

View File

@ -42,7 +42,6 @@ public class MoveMangaLibraryJob : Job
protected override IEnumerable<Job> RunInternal(PgsqlContext context)
{
context.Entry(Manga).Collection<Chapter>(m => m.Chapters).Load();
context.Entry(Manga).Reference<LocalLibrary>(m => m.Library).Load();
Dictionary<Chapter, string> oldPath = Manga.Chapters.ToDictionary(c => c, c => c.FullArchiveFilePath);
Manga.Library = ToLibrary;