5 ms·
You can use .NoTracking() and an SQL query for bulk changes ( and minor changes). Eg. Updating one column. Works faster than with .Tracking. The SQL script run
by NicoJuicy 4y ago
You can use .NoTracking() and an SQL query for bulk changes ( and minor changes). Eg. Updating one column.
Works faster than with .Tracking. The SQL script runs in your transaction, so rollback runs as usual.
The i%20==0 condition with .SaveChanges() is used with .Tracking(), yes.