-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Revisit model-snapshot for perf #18620
Comments
Note that this will likely mean that snapshots will need to be updated for major version upgrades and possibly minor ones. So we should consider #18557 at the same time |
Another idea I has was to only put the store model in the *.Designer.cs files, but this doesn't work since we need the full model when removing a migration. |
We believe this is best handled by squashing migrations: #2174 |
Re-open to consider using the relational model. |
I was trying to work around this in our product that have ~440 migrations and we can't squash them into a single to get a fresh start because the product is installed on-premises at customer and different customer is in different stage of upgrades in versioning. I come up to the solution where I created a MSBuild task that extracting the attributes from the The generated file does not contain the Does it exists any information about how the model in Should it work to run the migrations up command without the model in |
This answer is old and there are probably more cases now, but it should give you an idea of how the model is used.. |
At the beginning of EF Core we decided that we would use the fluent API in model snapshots rather than designing a new serialization format. (In other words, the fluent API is the way to serialize the model.) However, this can lead to a lot of code compiled for big models and when the number of migrations build up. See, for example, #18618.
We should consider:
The text was updated successfully, but these errors were encountered: