mirror of https://github.com/ppy/osu
Add `AsSplitQuery` specification to avoid optimisation recommendation log messages
This commit is contained in:
parent
8ec28dc8bc
commit
334fe1f120
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue