0

In my ASP.NET application I am using Entity Framework 6 with SQL Server. As per my scenario I need to perform a bulk update (40k row at a time) and bulk delete operation (40k row at a time) with EF6. EF6's RemoveRange method seems very very slow and update takes forever. Is there any way to speed this up?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
robert
  • 69
  • 5

1 Answers1

0

you should try a stored procedure to delete the items, stored procedures are much faster and pre-compiled form stored in SQL Server.

for reference to work with Stored Procedure please visit the link. Stored Procedure with Entity Framework

  • I am already using this approach. But what should I use for updates? – robert Dec 02 '20 at 05:06
  • That's one way, but OP is seeking _"...I need to perform bulk update(40k row at a time)"_ too –  Dec 02 '20 at 05:16