Add `AsSplitQuery` specification to avoid optimisation recommendation log messages

This commit is contained in:
Dean Herbert 2022-02-15 15:23:14 +09:00
parent 8ec28dc8bc
commit 334fe1f120
1 changed files with 5 additions and 2 deletions

View File

@ -215,7 +215,8 @@ private void migrateBeatmaps(OsuDbContext ef)
.Include(s => s.Beatmaps).ThenInclude(b => b.Metadata)
.Include(s => s.Beatmaps).ThenInclude(b => b.BaseDifficulty)
.Include(s => s.Files).ThenInclude(f => f.FileInfo)
.Include(s => s.Metadata);
.Include(s => s.Metadata)
.AsSplitQuery();
log("Beginning beatmaps migration to realm");
@ -344,7 +345,8 @@ private void migrateScores(OsuDbContext db)
.Include(s => s.Ruleset)
.Include(s => s.BeatmapInfo)
.Include(s => s.Files)
.ThenInclude(f => f.FileInfo);
.ThenInclude(f => f.FileInfo)
.AsSplitQuery();
log("Beginning scores migration to realm");
@ -434,6 +436,7 @@ private void migrateSkins(OsuDbContext db)
var existingSkins = db.SkinInfo
.Include(s => s.Files)
.ThenInclude(f => f.FileInfo)
.AsSplitQuery()
.ToList();
// previous entries in EF are removed post migration.