DB speedup

This commit is contained in:
Lani Aung
2021-11-19 23:12:14 -07:00
parent 744fc6bc57
commit 4060f3c69d
+2 -1
View File
@@ -46,8 +46,9 @@ namespace fxl.codes.kisekae.Services
{
using var context = _contextFactory.CreateDbContext();
return context.Configurations
.Include(x => x.Cels).ThenInclude(x => x.Cel)
.Include(x => x.Cels).ThenInclude(x => x.Render)
.Include(x => x.Kisekae).ThenInclude(x => x.Palettes).ThenInclude(x => x.Colors)
.AsSplitQuery()
.FirstOrDefault(x => x.Id == id);
}