How do I troubleshoot performance problems with an Oracle SQL statement

前端 未结 9 1522
夕颜
夕颜 2021-02-10 08:12

I have two insert statements, almost exactly the same, which run in two different schemas on the same Oracle instance. What the insert statement looks like doesn\'t matter - I\'

9条回答
  •  情歌与酒
    2021-02-10 08:52

    The main culprits in insert slow downs are indexes, constraints, and oninsert triggers. Do a test without as many of these as you can remove and see if it's fast. Then introduce them back in and see which one is causing the problem.

    I have seen systems where they drop indexes before bulk inserts and rebuild at the end -- and it's faster.

提交回复
热议问题