-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Extra overloading Fetch methods using AsNoTracking() #11
Comments
Maybe we should have this by default, then on Flush it checks to see if the items are attached and reattach then if dirty save changes? Does the DbContext have an even for that? |
Problem I see with this solution is we would spend extra processing time doing dirty checking just because we don't want to bother consumer code forcing it to ask us if the data it is going to consume is read only or not. |
This is abstracted to the individual ContentStore. The content store implementation will dictate is a object is tracked or not, not the calling layer. |
This reverts commit 0cb4932.
This reverts commit 0cb4932.
^ This is the 1st commit message: Add GetCulture() extension method ^ This is the commit message #2: Cleanup ISmsService (#15142) ^ This is the commit message #3: Fix TheAdminTheme layout margin and padding (#15143) ^ This is the commit message #4: Fix SectionDisplayDriver prefix (#15123) ^ This is the commit message #5: Prefill template name when creating a template. (#15145) ^ This is the commit message #6: Set the User Localization feature priority ^ This is the commit message #7: Fix issue with default culture not selected When currentUserCulture is null or supportedCulture doesn't contain currentUserCulture. ^ This is the commit message #8: Update the height of the admin content (#15153) ^ This is the commit message #9: Eliminate the anti-discovery pattern in Elasticsearch (#15134) ^ This is the commit message #10: Renaming and cleaning up search services (#15156) ^ This is the commit message #11: mkdocs-material 9.5.5
This reverts commit 0cb4932.
What do you think of offering extra overloads for Fetch methods that use AsNoTracking in order to improve performance?
Indeed in order to help devs to don't forget to use the most most optimal one I would use:
Problem is it is a breaking change, so to avoid unnoticed bad uses of the Fech method maybe it will be better to remove Fech method and only have FetchWithTracking and FetchWithNoTracking methods.
What do you think?
The text was updated successfully, but these errors were encountered: