设为首页 加入收藏

TOP

Therewillbedecreasingperformanceoforaclebydeletewholetableandtheninsert...
2014-11-24 01:33:06 来源: 作者: 【 】 浏览:5
Tags:Therewillbedecreasingperformanceoforaclebydeletewholetableandtheninsert...

There is a project that need collecting periodically (2 months) data into one table and then exporting it as excel file. The table is a temporary table, the app do that

delete from tb_name;

insert into tb_name values.....
...
insert into tb_name values.....

With that method, it would be causing more and more tablespace fragments, and make the performance decresing.

In other to avoid this disadvantage influences, I suggest programer modify the app as

truncate table tb_name drop storage;

insert into tb_name select * from ...

The delete operation will be causing tablespace fragments.

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MongoDB索引实战技巧 下一篇简单的存储过程

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: