You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p65 of the pbook states ".. make sure you're leveraging batching (e.g. calling the AddRange() on your DbSet collections ..EF Core will then create a TVP and MERGE.." which IMHO is rubbish. Invoking AddRange rather than multiple Add calls probably more efficient, but surely has no consequence for batching which is achieved [much] later at SaveChanges time when the ChangeTracker discovers changes (via DetectChanges) and then sends the ordered & optimised TSQL to back-end db.
p65 of the pbook states ".. make sure you're leveraging batching (e.g. calling the AddRange() on your DbSet collections ..EF Core will then create a TVP and MERGE.." which IMHO is rubbish. Invoking AddRange rather than multiple Add calls probably more efficient, but surely has no consequence for batching which is achieved [much] later at SaveChanges time when the ChangeTracker discovers changes (via DetectChanges) and then sends the ordered & optimised TSQL to back-end db.
Batching is discussed here
https://docs.microsoft.com/en-us/ef/core/performance/efficient-updating
The text was updated successfully, but these errors were encountered: