Migrations: Avoid redundant IS NOT NULL on indexes #5532
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Steps to reproduce
Create an entity with string property that got an unique-index. Field is marked as required.
The issue
Index is created on non null column, index is still created as a filtered index with an where statement. Somehow the filtered index is not used during all querying and got slow response time from SQL server (SQL 2012r2).
Migration code looks like the following
The column for the index is non nullable and then the index does not need any filter.
Further technical details
EF Core version: RC1
Operating system: Win10
Visual Studio version: VS2015 RC2
The text was updated successfully, but these errors were encountered: