Scanner Performance Improvements (#1774)
* Refactored the Genre code to be faster and used a dictonary to avoid some lookups. May fix the rare foreign constraint issue. * Refactored tag to the same implementation as Genre. Ensure when grabbing tags from ComicInfo, we normalize and throw out duplicates. * Removed an internal "external" field that was planned for Genres and Tags, but now with new plugin architecture, not needed.
This commit is contained in:
parent
48aebfc3c2
commit
8a0a2f0961
18 changed files with 1925 additions and 152 deletions
|
@ -762,7 +762,7 @@ public class SeriesServiceTests : AbstractDbTest
|
|||
},
|
||||
Metadata = DbFactory.SeriesMetadata(new List<CollectionTag>())
|
||||
};
|
||||
var g = DbFactory.Genre("Existing Genre", false);
|
||||
var g = DbFactory.Genre("Existing Genre");
|
||||
s.Metadata.Genres = new List<Genre>() {g};
|
||||
_context.Series.Add(s);
|
||||
|
||||
|
@ -918,7 +918,7 @@ public class SeriesServiceTests : AbstractDbTest
|
|||
},
|
||||
Metadata = DbFactory.SeriesMetadata(new List<CollectionTag>())
|
||||
};
|
||||
var g = DbFactory.Genre("Existing Genre", false);
|
||||
var g = DbFactory.Genre("Existing Genre");
|
||||
s.Metadata.Genres = new List<Genre>() {g};
|
||||
s.Metadata.GenresLocked = true;
|
||||
_context.Series.Add(s);
|
||||
|
@ -1555,5 +1555,11 @@ public class SeriesServiceTests : AbstractDbTest
|
|||
Assert.Null(await _unitOfWork.LibraryRepository.GetLibraryForIdAsync(1));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region UpdateRelatedList
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue