Performance decrease on migrate
We upgraded our project from EF 2.2.6 to EF 7.0.
Now we notice a massive performance decrease on dbContext.Database.Migrate().
We built a feature around that method where we migrate old databases during runtime.
We have a very big model with about 400 entity types.
Several teams are creating migrations independently -> we create about 250 migrations a year.
For maintenance we aggregate the migrations on regular bases.
Since we did that just after the migration the following measurement ist with only 10 migrations.
In the profiling screenshot you can see, that the creation of the relational model takes most of the time.

Include provider and version information
EF Core version: 7.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0
Operating system: Windows 11
IDE: Visual Studio 2022 17.4
Performance decrease on migrate
We upgraded our project from EF 2.2.6 to EF 7.0.
Now we notice a massive performance decrease on
dbContext.Database.Migrate().We built a feature around that method where we migrate old databases during runtime.
We have a very big model with about 400 entity types.
Several teams are creating migrations independently -> we create about 250 migrations a year.
For maintenance we aggregate the migrations on regular bases.
Since we did that just after the migration the following measurement ist with only 10 migrations.
In the profiling screenshot you can see, that the creation of the relational model takes most of the time.

Include provider and version information
EF Core version: 7.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0
Operating system: Windows 11
IDE: Visual Studio 2022 17.4