There will be decreasing performance of oracle by delete whole table and then insert ...
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.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。