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

Only build the model once and cache the (non)runtime one in the same pass. #33642

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Apr 29, 2024

Clear the list of IModelFinalizedConventions for design-time model to allow the dependencies to be GC'd
Reset CommandBatchPreparer state immediatly after execution to release the memory faster

Fixes #26186

@AndriySvyryd AndriySvyryd requested a review from a team April 29, 2024 22:11
@AndriySvyryd AndriySvyryd changed the title Reset CommandBatchPreparer state immediatly after execution Only build the model once and cache the (non)runtime one in the same pass. Apr 30, 2024
…pass.

Clear the list of IModelFinalizedConventions for design-time model to allow the dependencies to be GC'd
Reset CommandBatchPreparer state immediatly after execution to release the memory faster

Fixes #26186
@AndriySvyryd AndriySvyryd merged commit 9e7002c into main Apr 30, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the ReduceMemory branch April 30, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OnModelCreating is called twice when adding a new migration
2 participants