Skip to content

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

Merged
AndriySvyryd merged 1 commit into
mainfrom
ReduceMemory
Apr 30, 2024
Merged

AndriySvyryd merged 1 commit into
mainfrom
ReduceMemory

Conversation

@AndriySvyryd

@AndriySvyryd AndriySvyryd commented Apr 29, 2024 •

Copy link
Copy Markdown
Member

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
@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