RE: Performance static vs dinamic sql

RE: Performance static vs dinamic sql

 

  

what is your keepfenced set to? and you should explain the stored
procedure as well as the dynamic sql.








"Padhi Sankar "
<db2udbdba-ezmlms
hield-x10374203.x To
[Email Address Removed] "LazyDBA Discussion"
a.com> <[Email address protected]
cc
12/11/2006 11:58
AM Subject
RE: Performance static vs dinamic
sql










I think I know what you are trying to get - bufferpools ?

I tried many different ways: dynamic 1st then Stored porc or vice versa -
all the time SP is taking longer. Looks like execution plan for SP is not
corrent - dropped and recreated - still no change.



-----Original Message-----
From: Kale Abhishek (IT)
[mailto:db2udbdba-ezmlmshield-x9002453.[Email address protected]
Sent: Monday, December 11, 2006 11:33 AM
To: LazyDBA Discussion
Subject: RE: Performance static vs dinamic sql

Hi Sankar,

Whats the order of execution of this SQL's. When I say this I mean which
one do you execute first?

Regards,
Abhishek.

-----Original Message-----
From: Padhi Sankar
[mailto:db2udbdba-ezmlmshield-x53008227.[Email address protected]
Sent: Monday, December 11, 2006 10:01 PM
To: LazyDBA Discussion
Subject: Performance static vs dinamic sql

Any thoughts why stored procedure taking longer than dynamic SQL:

I'm running a SQL in a stored procedure its is taking 15 min. and the
same SQL as dynamic statement takes 2 min.


I dropped and recreated Stored procedure - nohelp.


Environment: db2 8.1 Fixpak9 AIX 5.3.



---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does
not intend to waive confidentiality or privilege. Use of this email is
prohibited when received in error.


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




DB2 & UDB email list listserv db2-l LazyDBA home page