|
insert /*+append*/ into table1 select * from table2
其实,使用append会增加数据插入的速度。在使用了append选项以后,insert数据会直接加到表的最后面,而不会在表的空闲块中插入数据。/*+APPEND*/的作用是在表的高水位上分配空间,不再使用表的extent中的空余空间
append 属于direct insert,归档模式下append+table nologging会大量减少日志,非归档模式append会大量减少日志,append方式插入只会产生很少的undo,不去寻找 freelist 中的free block , 直接在table HWM 上面加入数据。
|
|