Skip to content

Use AsNoTracking with readonly queries #225

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

Closed
wants to merge 3 commits into from
Closed

Conversation

jaredcnance
Copy link
Contributor

@jaredcnance jaredcnance commented Jan 23, 2018

Closes #221

This is on hold until I can evaluate the scope of the breaking changes. Not only are there API implications but also impacts on possible extensibility scenarios. By setting the query as NoTracking, acceptance tests using the same context may be impacted.

Need to put together documentation on these breaking changes and how users should handle acceptance testing that uses the same DbContext instance.

Update

I think the best way to move forward is to allow a global options flag to be set in Startup that will enable AsNoTracking. It will need to default to false to avoid breaking changes and will allow tests to enable tracking for all queries.

There may also be impact to #238

@jaredcnance jaredcnance changed the title Readonly query performance support Use AsNoTracking with readonly queries Jan 23, 2018
@jaredcnance jaredcnance deleted the feat/#221 branch July 7, 2018 01:25
@jaredcnance jaredcnance mentioned this pull request Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant