WorkingScripts

The Stuff that Just Works

WorkingScripts header image 2

Deleting a lot of rows fast

March 19th, 2008 by Iouri Chadour

Need to delete millions of rows from a table fast? Here is how you can do this:

   1: ALTER TABLE table_name ACTIVATE NOT LOGGED INITIALLY; --disable logging

   2: DELETE FROM table_name WHERE ....;

   3: COMMIT; --Commits and enable logging

Tags:   · No Comments

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Leave a Comment

0 responses so far ↓

There are no comments yet...Kick things off by filling out the form below.