Consolidate several Oracle triggers. Any performance impact?

前端 未结 3 790
不思量自难忘°
不思量自难忘° 2021-01-12 15:32

Most of our tables have one BEFORE INSERT OR UPDATE trigger, in order to set ID\'s BEFORE INSERT and to set creation / modification users / dates <

3条回答
  •  不知归路
    2021-01-12 16:12

    I would suggest that you investigate the impact of using the Sequence in the trigger - when creating the sequence seed the sequence with a cache value (CACHE specifies how many values of the sequence the database preallocates and keeps in memory for faster access). I have experienced factors far greater the 8 associated with sequences. In any case, in order to compare the impact of a trigger in the terms of context switching the use of the Sequence should be either eliminated for the test or taken into consideration when evaluating the results.

提交回复
热议问题