Hi,
I have a trigger that does some auditing on INSERT, DELETE and UPDATE. The current logic means that the trigger is enabled but is not actually doing any work (i.e. for each row: return).
On a set operation affecting 10000 rows, UPDATE and DELETE takes approx 0.4 seconds longer to run when the trigger is enabled (but still not doing any work). However, when invoked from an INSERT statement, the trigger takes 1.2 seconds longer.
Does anyone have any ideas why a trigger would take longer on an INSERT than a DELETE or UPDATE?
Code available if required.
Thanks in advance,
Graeme
"Just beacuse you're paranoid, don't mean they're not after you
I have a trigger that does some auditing on INSERT, DELETE and UPDATE. The current logic means that the trigger is enabled but is not actually doing any work (i.e. for each row: return).
On a set operation affecting 10000 rows, UPDATE and DELETE takes approx 0.4 seconds longer to run when the trigger is enabled (but still not doing any work). However, when invoked from an INSERT statement, the trigger takes 1.2 seconds longer.
Does anyone have any ideas why a trigger would take longer on an INSERT than a DELETE or UPDATE?
Code available if required.
Thanks in advance,
Graeme
"Just beacuse you're paranoid, don't mean they're not after you