One cannot pedict the number of records to be deleted like that. The table is an OLTP and entries and contra-entries (DaPi has rightly conveyed the business logic) are being inserted online.Only those rows who have the contra entry(i.e., a negetive amount field) are to be deleted (which ranges from 5% to 40% at any given day).I cannot drop the original table as it is being used by other processes as well(For example TIBCO uses it for propagating the outstanding records)shuttding down these application may result in revenue loss.Quote:
Originally posted by abhaysk
I wonder how no one asked.... wat is the number of records you want to retain?
If you are trying to delete more than 25% of records from a table.. go for parallel insert into temp table the records you want to retain.. drop main table.. rename temp table to main table..
Abhay.
