Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

Commented Unassigned: Repository.Update() slow in bulk processing [1239]

$
0
0
When using the Update() function while working with a batch of 5k+ entities, the inner .Attach() takes a very long time to run; causing a performance hit (Obviously the larger the batch, the slower it runs). I noticed that most times my entities are already being tracked at this point so the extra .Attach call is not needed. Can you explain the reasoning behind the attach being called here? Any ideas other than an overload of the Update function?

Best regards
Comments: Thank you for your feedback, could you be so kind to issue a pull request and commit a unit/integration test so that we can reproduce this issue? This will be the quickest way for us to resolve this.

Viewing all articles
Browse latest Browse all 1539

Trending Articles