Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / September 2004

Tip: Looking for answers? Try searching our database.

SPs from Triggers in V8.2 - Performance?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Reddin - 24 Sep 2004 15:14 GMT
Hi,

Currently, in V8.1 we have a particular trigger which causes a
significant performance impact on an inserting query (around
10seconds) which appears because the optimiser is having to recompile
the insert with the trigger body everytime a new value is inserted
(i.e not using parameter markers) - the app. status shows 'compiling'
for 10secs+

In V8.2 with the ability to call SPs from triggers - if I move the
trigger body to an SP, would it be precompiled and hence overcome this
problem completely?
or would a compile still be necessary ?

Many thanks

Paul.
Serge Rielau - 26 Sep 2004 17:40 GMT
Paul,

Everything you pushed into the preocedure would be precompiled.
However the trigger stub "CREATE TRIGGER ... CALL trigger_body(...);"
Still needs to be picked up. So there will still be "some" overhead.
You benefit directly relates to teh complexity/length of the trigger-body.

The obvious question of course is why no parameter markers are used.

Cheers
Serge
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.