Therewillbedecreasingperformanceoforaclebydeletewholetablean
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-09 15:11:49
Therewillbedecreasingperformanceoforaclebydeletewholetablean
Therewillbedecreasingperformanceoforaclebydeletewholetablean: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_n
導(dǎo)讀Therewillbedecreasingperformanceoforaclebydeletewholetablean: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_n

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_n
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.
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
Therewillbedecreasingperformanceoforaclebydeletewholetablean
Therewillbedecreasingperformanceoforaclebydeletewholetablean: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_n