You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Server: instead of dropping/creating indexes, use CREATE INDEX with DROP EXISTING=ON #35067
When an index facet is changed (e.g. the fill factor), EF currently generates a migration that drops and then recreates the index.
First, we should add support for ALTER INDEX, which would be the proper and efficient way to apply index changes; #20692 already tracks this.
However, there apparently are cases where you can't alter the existing index, but need to recreate it. For those cases, CREATE INDEX with DROP EXISTING=ON would be better perf-wise than drop/create, e.g. since it allows queries to continue using the old index as the new one is still being created (this could take a long time on big tables).
Activity
Use CREATE INDEX with DROP_EXISTING=ON for index facet changes (SQL S…
Use CREATE INDEX with DROP_EXISTING=ON for index facet changes (SQL S…