分类(Oracle)
Oracle处理大批量数据时加上nologing进行优化
2008/05/25 13:27
建议使用NOLOGING参数
使用oracle中包含在注释中的提示信息
insert /*+append*/ into table_Name ...nologing
select * from ...
insert into tb_t05 nologging (id,customer_name) values(1,'2') ;
delete from tb_t05 nologging where id <3 ;
==================
在使用了append选项以后,insert数据会直接加到表的最后面,而不会在表的空闲块中插入数据。
使用append会增加数据插入的速度。
------------------/*+APPEND*/的作用是在表的高水位上分配空间,不再使用表的extent中的空余空间
------
append 属于direct insert,归档模式下append+table nologging会大量减少日志,非归档模式append会大量减少日志,append方式插入只会产生很少的undo
来自:本站原创
相关日志:
+引用(0) |
发表评论
| 昵称 密码 游客无需密码 |
| 网址 电邮 注册 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
验证码 请输入左侧图片中的字符
记住我







