mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
add index to last connection for improved search speed
This commit is contained in:
@ -88,7 +88,8 @@ namespace Data.Context
|
||||
// make network id unique
|
||||
modelBuilder.Entity<EFClient>(entity =>
|
||||
{
|
||||
entity.HasIndex(e => e.NetworkId);
|
||||
entity.HasIndex(client => client.NetworkId);
|
||||
entity.HasIndex(client => client.LastConnection);
|
||||
entity.HasAlternateKey(client => new
|
||||
{
|
||||
client.NetworkId,
|
||||
|
Reference in New Issue
Block a user