ITPub博客

首页 > IT基础架构 > 网络安全 > 加快insert into select速度with hints and nologging

加快insert into select速度with hints and nologging

原创 网络安全 作者:polestar123 时间:2009-07-13 13:58:43 0 删除 编辑
SQL> select count(*) from aaa_partitioned_table;

COUNT(*)
----------
1000000

Executed in 0.375 seconds

SQL> truncate table aaa_partitioned;

Table truncated

Executed in 2.172 seconds

SQL> insert /*+ APPEND */ into aaa_partitioned nologging select * from aaa_partitioned_table;

1000000 rows inserted

Executed in 29 seconds

SQL> commit;

Commit complete

Executed in 0 seconds[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70612/viewspace-1024090/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-22

  • 博文量
    110
  • 访问量
    438365