Added: Last round of optimisation. Large libraries should load around 2x faster again compared to the last version.

This commit is contained in:
Leonardo Galli
2017-10-07 18:15:58 +02:00
parent a9b244bf75
commit e77d9ce848
5 changed files with 19 additions and 6 deletions

View File

@@ -142,6 +142,9 @@ namespace NzbDrone.Core.Datastore
Mapper.Entity<Movie>().RegisterModel("Movies")
.Ignore(s => s.RootFolderPath)
.Ignore(m => m.Actors)
.Ignore(m => m.Genres)
.Ignore(m => m.Tags)
.Relationship()
.HasOne(s => s.Profile, s => s.ProfileId);
//.HasOne(m => m.MovieFile, m => m.MovieFileId);