A while ago I was fond of using triggers to trap and collect data until I
drove my application to its knees with triggers.  I found that  using a
trigger on a heavily accessed table can have a serious impact on
performance.  I have tried using  bypass code to shunt the trigger but it
still causes performance problems.  Just the fact that the trigger is fired
on every table update creates tremendous overhead in an active system.  Is
there a way to turn a trigger on and off for a specific user and process?  I
do not want to drop the trigger because I want the audit data for processes
that other users are performing.

 

Here is my scenario: 

A master table of all products (typically 1 - 2 million records).  This
table is heavily accessed.

I want to create an audit file to track changes to the table (update trigger
works well except for the performance issue)

I would like to bypass the trigger during certain processes such as the
update that occurs after a physical inventory.

 

Any recommendations will be appreciated.

 

Razzak - Schedule permitting, could we spend a little time discussing
triggers in the advanced training next week? 

 

John

Reply via email to