performance - Deleting data in a sql server table takes much time -


i have table has more 380 million records. have stored procedure which:

  1. deletes records.
  2. insert something.

the total procedure takes around 30 minutes execute. out of delete takes 28 minutes.

delete simple statement, along these lines:

delete condition_1 , condition_2 , condition_3 

can me?

firstly have @ indexing , query..it should in first place not take 28 mins ?

it maybe worth taking @ database tuning , query optimization...maybe can try delete records incrementally..something suggested here..


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -