docs: trying to improve updating related sections process
This commit is contained in:
parent
7c617f7650
commit
943a00982f
@ -188,6 +188,9 @@ namespace RMuseum.DbContext
|
||||
builder.Entity<GanjoorPoemSection>()
|
||||
.HasIndex(v => new { v.GanjoorMetreId, v.RhymeLetters, v.Id});
|
||||
|
||||
builder.Entity<GanjoorPoemSection>()
|
||||
.HasIndex(v => new { v.GanjoorMetreId, v.RhymeLetters, v.SectionType });
|
||||
|
||||
builder.Entity<GanjoorCachedRelatedSection>()
|
||||
.HasIndex(v => new { v.PoemId, v.SectionIndex });
|
||||
}
|
||||
|
||||
4334
RMuseum/Migrations/20220717112106_GanjoorPoemSectionNewIndex.Designer.cs
generated
Normal file
4334
RMuseum/Migrations/20220717112106_GanjoorPoemSectionNewIndex.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
public partial class GanjoorPoemSectionNewIndex : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorPoemSections_GanjoorMetreId_RhymeLetters_SectionType",
|
||||
table: "GanjoorPoemSections",
|
||||
columns: new[] { "GanjoorMetreId", "RhymeLetters", "SectionType" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_GanjoorPoemSections_GanjoorMetreId_RhymeLetters_SectionType",
|
||||
table: "GanjoorPoemSections");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1359,6 +1359,8 @@ namespace RMuseum.Migrations
|
||||
|
||||
b.HasIndex("GanjoorMetreId", "RhymeLetters", "Id");
|
||||
|
||||
b.HasIndex("GanjoorMetreId", "RhymeLetters", "SectionType");
|
||||
|
||||
b.ToTable("GanjoorPoemSections");
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user