-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve performance for determining to be indexed values GRAR-1673
- Loading branch information
Showing
9 changed files
with
177 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
] | ||
}, | ||
"dotnet-ef": { | ||
"version": "3.1.2", | ||
"version": "5.0.1", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
...s.ProjectionHandling.LastChangedList/Migrations/20210107105632_AddToBeIndexed.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...sregisters.ProjectionHandling.LastChangedList/Migrations/20210107105632_AddToBeIndexed.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace Be.Vlaanderen.Basisregisters.ProjectionHandling.LastChangedList.Migrations | ||
{ | ||
public partial class AddToBeIndexed : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<bool>( | ||
name: "ToBeIndexed", | ||
schema: "Redis", | ||
table: "LastChangedList", | ||
type: "bit", | ||
nullable: false, | ||
computedColumnSql: "CAST(CASE WHEN (([Position] > [LastPopulatedPosition]) AND ([ErrorCount] < 10)) THEN 1 ELSE 0 END AS bit) PERSISTED"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_LastChangedList_ToBeIndexed", | ||
schema: "Redis", | ||
table: "LastChangedList", | ||
column: "ToBeIndexed") | ||
.Annotation("SqlServer:Include", new[] { "LastError" }); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropIndex( | ||
name: "IX_LastChangedList_ToBeIndexed", | ||
schema: "Redis", | ||
table: "LastChangedList"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "ToBeIndexed", | ||
schema: "Redis", | ||
table: "LastChangedList"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters