I have read few articles (article1, article2) about Entity Framework that it calls DetectChanges many times, which makes it very slow when working with large amounts of data
One of the main problems that can be resolved by DetectChanges is persisting data in EF when we have ManyToMany relation and AutoDetectChanges=false.
DetectChanges
ManyToMany
AutoDetectChanges=false