Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Slow insert
Try this one
create table C
as (select * from TABLEB
MINUS select * from TABLEA);
insert into TABLEA select * from table C;
Hope it helps ...
Lito Dizon wrote:
> Why is this so slow? Slow meaning 10 hours. Ans the
> further it gets, the slower it gets.
>
> insert into TABLEA
> select * from TABLEB
> where KEY not in (select KEY from TABLEA )
>
> Both tables are indexed on KEY. TABLEA has 9000 rows
> while TABLE B has 12000 rows.
Received on Fri Dec 11 1998 - 00:54:22 CST