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

Fix memory issue with expression constants #133

Merged
merged 4 commits into from
Mar 20, 2024

Conversation

nino-s
Copy link
Collaborator

@nino-s nino-s commented Mar 20, 2024

Same fix as in the base package here PR#93.

There is a problem using EFCore with Expression.Constant. Constants will be cached by EFCore and this slowly increase the used memory. Using Expression.Constant(null, typeof(string)); for example shouldn't be a problem, because this value can be cached. But searching for values in the global/column search shouldn't be cached, because those values are dynamic. Therefore, this PR changes the dynamic search values to be based on expression bodies which are not cached by EFCore.

@Namoshek Namoshek merged commit cc7f8f6 into Namoshek:master Mar 20, 2024
3 checks passed
@nino-s nino-s deleted the fix-memory-issue-with-constants branch March 20, 2024 14:34
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.

2 participants