- Removed usage of obsolete methods

- Removed unneeded argument from ValidateQuery in Searches.cs
- Using split query when loading all guild configs
This commit is contained in:
Kwoth
2021-12-20 03:48:42 +01:00
parent da2ee0c158
commit edd60ae656
4 changed files with 32 additions and 30 deletions

View File

@@ -45,9 +45,9 @@ public static class GuildConfigExtensions
private static IQueryable<GuildConfig> IncludeEverything(this DbSet<GuildConfig> configs)
{
// todo split query
return configs
.AsQueryable()
.AsSplitQuery()
.Include(gc => gc.CommandCooldowns)
.Include(gc => gc.FollowedStreams)
.Include(gc => gc.StreamRole)