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

C#: Fix performance issue in EntityFramework modelling #16473

Merged
merged 1 commit into from
May 21, 2024

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented May 13, 2024

This PR fixes a perfomance issue in how we model flow through EntityFramework SaveChanges methods. When data reaches a SaveChanges method call, we jump (using SyntheticGlobals) to the relevant DbSet<elementType> properties, and we were previously storing unnecessarily much information in the SyntheticGlobals, which could result in a combinatorial explosion.

@github-actions github-actions bot added the C# label May 13, 2024
@hvitved hvitved added the no-change-note-required This PR does not need a change note label May 13, 2024
@hvitved hvitved marked this pull request as ready for review May 13, 2024 13:46
@hvitved hvitved requested a review from a team as a code owner May 13, 2024 13:46
michaelnebel
michaelnebel previously approved these changes May 15, 2024
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yes, that looks like a good improvement! Thank you for fixing the issues with the jump step replacement!

@hvitved hvitved merged commit 60ee7fb into github:main May 21, 2024
20 checks passed
@hvitved hvitved deleted the csharp/entity-framework-perf branch May 21, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants