Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index on TRN column to reporting table #915

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
create index ix_contact_trn on contact (dfeta_trn) include (id)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public Migrator(string connectionString, ILogger? logger = null)
.LogScriptOutput()
.WithTransaction()
.JournalToSqlTable("dbo", "__SchemaVersions")
.WithScripts(new DqtReportingMigrationsScriptProvider());
.WithScripts(new DqtReportingMigrationsScriptProvider())
.WithExecutionTimeout(TimeSpan.FromMinutes(3));

if (logger is not null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<None Remove="Dqt\Services\DqtReporting\Migrations\0012_FixProgrammeTypeCasing.sql" />
<None Remove="Dqt\Services\DqtReporting\Migrations\0013_PreviousNameTransactionId.sql" />
<None Remove="Dqt\Services\DqtReporting\Migrations\0014_Contact_dfeta_allowidsigninwithprohibitions.sql" />
<None Remove="Dqt\Services\DqtReporting\Migrations\0015_ContactTrnIndex.sql" />
</ItemGroup>

<ItemGroup>
Expand All @@ -38,6 +39,7 @@
<EmbeddedResource Include="Dqt\Services\DqtReporting\Migrations\0012_FixProgrammeTypeCasing.sql" />
<EmbeddedResource Include="Dqt\Services\DqtReporting\Migrations\0013_PreviousNameTransactionId.sql" />
<EmbeddedResource Include="Dqt\Services\DqtReporting\Migrations\0014_Contact_dfeta_allowidsigninwithprohibitions.sql" />
<EmbeddedResource Include="Dqt\Services\DqtReporting\Migrations\0015_ContactTrnIndex.sql" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading