Deletion from large table

  • From: John Dunn <JDunn@xxxxxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 23 Aug 2016 10:17:25 +0000

I need to delete large numbers of rows from a large table based upon whether a 
record exists in a small table.

I am currently using :
            delete from big_table  where not exists (select 1 from small_table 
s where s.id = b.id)"

big_table may have up to 100,000 rows for the same id value.
small_table will only have one row per id value

Is there a better way to code this?


John

Other related posts: