If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Stored Procedure Slow after rebuild

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-05, 08:47
ddempsey ddempsey is offline
Registered User
 
Join Date: Jun 2003
Posts: 50
Stored Procedure Slow after rebuild

Hi,

When i rebuild an updated stored procedure, the performance was very slow.
Is there an initial hit to performance when recreating stored procedures.
I would expect a hit when running for first time due to the execution plan not being in memory. Is there anything else that would contribute to performance hit.

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-24-05, 01:50
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
The first question is "where is the delay"? Is it: invoking the procedure; executing the procedure; returning the result to the caller? Each will have different tuning requirements.

However two possible causes (working on the "what's changed" principle) are
- the SQL now uses inefficient access paths. Do normal SQL tuning
- you have new, poorly perfoming, SQL. Do normal SQL tuning

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On