Skip to content

Commit 03a35eb

Browse files
Update batch-update.md
1 parent 843645e commit 03a35eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs2/pages/documentations/batch-update.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ ctx.Users.Where(x => x.LastLoginDate < date)
9999
- **DO NOT** support TPT
100100

101101
If you need to use one of this feature, you need to use the library [Entity Framework Extensions](https://entityframework-extensions.net/)
102+
103+
### EF Core & Client Evaluation
104+
105+
_Do not use this feature if Client Evaluation is enabled_
106+
107+
`Batch Update` use the SQL generated by EF Core. When a filter is made on client-side, it means the filtering happens in the application and not in the SQL executed.
108+
109+
In other words, even if you put a filter, all rows tables could be potentially updated if the filter is made on the client-side.
110+
111+
We always recommend to [disable the client evaluation](https://docs.microsoft.com/en-us/ef/core/querying/client-eval#optional-behavior-throw-an-exception-for-client-evaluation) to avoid performance issue in your application.
112+
102113

103114
## Requirements
104115

0 commit comments

Comments
 (0)