Add time index to connection log (#29281)

* Add time index to connection log

Queries go nyoom.

* Don't let me code shit at 5 AM
This commit is contained in:
Pieter-Jan Briers
2024-06-21 15:29:10 +02:00
committed by GitHub
parent 730a4d289d
commit f041f58a6d
7 changed files with 3816 additions and 0 deletions

View File

@@ -187,6 +187,9 @@ namespace Content.Server.Database
modelBuilder.Entity<ConnectionLog>()
.HasIndex(p => p.UserId);
modelBuilder.Entity<ConnectionLog>()
.HasIndex(p => p.Time);
modelBuilder.Entity<ConnectionLog>()
.Property(p => p.ServerId)
.HasDefaultValue(0);