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

Add a way to specify no-tracking in query time to prevent caching when not needed #523

Closed
MikeAlhayek opened this issue Dec 27, 2023 · 0 comments · Fixed by #524
Closed

Comments

@MikeAlhayek
Copy link
Collaborator

Sometimes, we may want to query large data. We know that this data is for special purposes like reporting. So it does not need any internal caching. Internal caching can be very expensive when dealing with a large data set.

adding

public class QueryContext
{
    public bool WithNoTracking { get; set; }
}

and passing this to the query can allow us to exclude the data from being cached.

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 a pull request may close this issue.

1 participant