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

Allow specifying online option on MSSQL indexes #13698

Merged
merged 1 commit into from
Nov 26, 2018
Merged

Allow specifying online option on MSSQL indexes #13698

merged 1 commit into from
Nov 26, 2018

Conversation

Kukkimonsuta
Copy link
Contributor

Introduces new ForSqlServerIsOnline extension to index builder.

There is a breaking change in EFCore.SqlServer in form of new property
ISqlServerIndexAnnotations.IsOnline.

Note that enabling/disabling online index creation does trigger a migration even though I believe it has no effect on the resulting index so it's essentially rebuilt for no reason. If this should be avoided I'd like to request a hint on how to achieve that.

Fixes #11499

@ajcvickers
Copy link
Member

Will look at this for 3.0.

@bricelam
Copy link
Contributor

Note that enabling/disabling online index creation does trigger a migration even though I believe it has no effect on the resulting index

The current behavior is fine. We could make some bigger changes to prevent this, but it's not worth it. The workaround is easy--don't call .ForSqlServerIsOnline() unless you're creating or rebuilding an index.

@Kukkimonsuta Kukkimonsuta changed the base branch from release/2.2 to master November 2, 2018 23:56
@Kukkimonsuta
Copy link
Contributor Author

Rebased onto master assuming that's where 3.0 work is done

Introduces new `ForSqlServerIsOnline` extension to index builder.

There is a breaking change in `EFCore.SqlServer` in form of new property
`ISqlServerIndexAnnotations.IsOnline`

Fixes #11499
@bricelam
Copy link
Contributor

bricelam commented Nov 26, 2018

(Rebased again to resolve conflict with src\EFCore.SqlServer\breakingchanges.netcore.json)

@bricelam bricelam merged commit e7e8d36 into dotnet:master Nov 26, 2018
@clement911
Copy link
Contributor

This is awesome.
Is there any chance that a similar option could be added to specify the dynamic data masking options?
See #20592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specifying online option on SQL Server indexes
4 participants