There will be decreasing performance of oracle by delete whole table and then insert ...

來源:互聯網
上載者:User

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.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.