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

Revisit model-snapshot for perf #18620

Open
ajcvickers opened this issue Oct 28, 2019 · 4 comments
Open

Revisit model-snapshot for perf #18620

ajcvickers opened this issue Oct 28, 2019 · 4 comments

Comments

@ajcvickers
Copy link
Contributor

ajcvickers commented Oct 28, 2019

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:

@AndriySvyryd
Copy link
Member

AndriySvyryd commented Oct 30, 2019

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

@bricelam
Copy link
Contributor

bricelam commented Nov 1, 2019

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.

@ajcvickers
Copy link
Contributor Author

We believe this is best handled by squashing migrations: #2174

@ajcvickers
Copy link
Contributor Author

Re-open to consider using the relational model.

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

No branches or pull requests

3 participants