Oracle SQL Migrate Data Optimization -
i have 3 tables usertable,usertablebbackup , userblacklist. each table has approximately 35m data.
i want migrate each tupple usertable usertablebbackup ,where entiry not in userblacklist. created script following. have way of optimizing script? otherwise best one? thanks.
insert /*+append+*/ usertablebbackup (id_backup) select id usertable id not in (select id userblacklist);
insert /*+append+*/ usertablebbackup(id_backup) select a.id usertable left outer join userblacklist b on a.id=b.id b.id null it should faster...
Comments
Post a Comment