OData / OData/AspNetCoreOData

Does it make sense to call .AsNoTracking for OData GET controller actions?

Open
#968 2 comments 0 reactions 1 assignee View on GitHub

@corranrogue9 is already working on this.

Since Jun 27, 2023.

documentation question
Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

There is .AsNoTracking() method in EF Core which ensures minimal memory usage and optimal performance for read operation. When I found examples of OData controllers online, I've never seen using .AsNoTracking() for Get and Get(id) methods. For example, in MS docs both

don't use it.

So, does it make sense to use it for OData read queries?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.