Posts
1150
Comments
891
Trackbacks
1
Repost: Speeding up Entity Framework in long iterative loops

I’ve run into this sort of thing before myself, but Rick has all the good details.

Basically, if you don’t need change tracking, then you can easily turn it off and speed things up greatly.

posted on Sunday, December 21, 2014 6:23 PM Print
Comments
Gravatar
# re: Repost: Speeding up Entity Framework in long iterative loops
Jimmy Bogard
12/22/2014 10:15 AM
Ran into this exact thing in NHibernate too. Started separating out my batch work with "get the things you need to process" as one set objects, and "process each one-by-one" as then the real change-tracked entities. Bonus, it set me up in the future for async durable messaging cause those first set of objects are easily transferred as messages on MSMQ/Rabbit etc.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 4 and 1 and type the answer here: