Archives of the TeradataForum
Message Posted: Tue, 02 Mar 2004 @ 22:38:25 GMT
Subj: | | Re: Delete Query on a huge table taking too much time |
|
From: | | Mark Ferguson |
Another variation to Mirjam's solution is to create the interim table and insert the rows that you want to keep as Mirjam said. Then run a
'delete all' on the production table which is very quick due to the fact that there is no journaling. After the delete is finished, do a straight
insert select back into the prod table from the interim table.
The rename option is probably the best but as Mirjam suggested, not everyone has the privileges to drop/rename tables.
Mark K. Ferguson
Teradata Certified Master
Coffing Data Warehousing /Accenture USAF - FIRST Project
|