Skip to content

Commit 4b8310e

Browse files
committed
attempt to optimize WHR ram usage
1 parent 9dc89bf commit 4b8310e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ZkData/Ef/WHR/RatingSystems.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ public static void Init()
3737
{
3838
int battles = 0;
3939
data.Database.CommandTimeout = 240;
40-
for (int month = 10*12; month > 0; month--)
40+
for (int month = 5*12; month > 0; month--)
4141
{
4242
DateTime minStartTime = DateTime.Now.AddMonths(-month);
4343
DateTime maxStartTime = DateTime.Now.AddMonths(-month + 1);
4444
foreach (SpringBattle b in data.SpringBattles
4545
.Where(x => x.StartTime > minStartTime && x.StartTime < maxStartTime)
46-
.Include(x => x.ResourceByMapResourceID)
4746
.Include(x => x.SpringBattlePlayers)
48-
.Include(x => x.SpringBattleBots)
4947
.AsNoTracking()
5048
.OrderBy(x => x.StartTime))
5149
{

0 commit comments

Comments
 (0)