Oracle 11g - How to optimize slow parallel insert select?

前端 未结 3 1741
栀梦
栀梦 2020-12-31 17:32

we want to speed up the run of the parallel insert statement below. We are expecting to insert around 80M records and it is taking around 2 hours to finish.

         


        
3条回答
  •  半阙折子戏
    2020-12-31 18:10

    Try using more bind variables, especially where nested loops might happen. I've noticed that you can use it in cases like

    CREATE_DT >= :YOUR_DATE instead of CREATE_DT >= sysdate - 60 
    

    I think this would explain why you have 180 million executions in the lowest part of your execution plan even though the whole other part of the update query is still at 8 million out of your 79 million.

提交回复
热议问题