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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -