Add composite hash-size indexes in files table.

This commit is contained in:
2020-09-11 02:30:45 +01:00
parent 915a9a6738
commit d7b19a46b6
4 changed files with 576 additions and 0 deletions

View File

@@ -77,6 +77,42 @@ namespace RomRepoMgr.Database
entity.HasIndex(e => e.Size);
entity.HasIndex(e => e.IsInRepo);
entity.HasIndex(e => new
{
e.Crc32,
e.Size
});
entity.HasIndex(e => new
{
e.Md5,
e.Size
});
entity.HasIndex(e => new
{
e.Sha1,
e.Size
});
entity.HasIndex(e => new
{
e.Sha256,
e.Size
});
entity.HasIndex(e => new
{
e.Sha384,
e.Size
});
entity.HasIndex(e => new
{
e.Sha512,
e.Size
});
});
modelBuilder.Entity<RomSet>(entity =>