| c# Programming Glossary: recreatecontextFastest Way of Inserting in Entity Framework http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework  context Entity entity int count int commitCount bool recreateContext context.Set Entity .Add entity if count commitCount 0  context.SaveChanges.. .Add entity if count commitCount 0  context.SaveChanges if recreateContext  context.Dispose  context new MyDbContext  context.Configuration.AutoDetectChangesEnabled.. a few measurements for my 560.000 entities commitCount 1 recreateContext false many hours That's your current procedure commitCount 100.. 
 |