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

Performance tip to disable tracking #317

Open
habbes opened this issue Jul 23, 2024 · 0 comments
Open

Performance tip to disable tracking #317

habbes opened this issue Jul 23, 2024 · 0 comments

Comments

@habbes
Copy link
Contributor

habbes commented Jul 23, 2024

Every so often a customer using OData Client in a long-running service reports consistent high memory usage after making a request that returns a large payload. This issue can usually be resolved by disabling entity tracking and/or using short-lived/scoped DataServiceContext instances (e.g. one per request) instead of a long-lived shared one. We should add a section in the perfomance guidelines doc that talks about this.

Sample customer issue: OData/odata.net#3019

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

No branches or pull requests

1 participant