RE: Better Delete method
Date: Sat, 10 Jul 2021 19:33:24 -0400
Message-ID: <7b4d01d775e3$fa98c1a0$efca44e0$_at_rsiz.com>
Would you like the result to be partitioned so that future purging is cheap and quick?
Hello , this database version is 11.2.0.4 of Oracle Exadata. A table(say TAB1) is there holding ~900 million rows with size ~222GB and it's not partitioned. It has two indexes , one with a three column composite index with size ~98Gb and other is the primary key on one column with size ~23GB. As a part of the requirement we need to delete/purge 50% of its data from this table. No referential constraints exist here. So I wanted to understand, out of the two below, which is the best method to opt for? or any other possible better option?
In a cursor pick the ~450million rowids of the rows to be deleted based on filter criteria;
Create the composite index in parallel.to make it as fast as possible
Create the unique index on the same column as there in PK.
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Jul 11 2021 - 01:33:24 CEST