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 > Performance checks while coding embeded SQL's

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-03, 09:01
shivranjan shivranjan is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Performance checks while coding embeded SQL's

Want to know some basic performance checks which should be done while coding the embeded SQL's.
Reply With Quote
  #2 (permalink)  
Old 10-07-03, 09:46
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Use the EXPLAIN YES option on the BIND command. This will populate the explain tables for static SQL (you have to make sure the explain tables are created if not already done so). Once the explain tables are populated, you can use the visual explain feature to analyze the access path of your SQL.

There are other explain options that can be used during the BIND process, so consult the manual for details. Make sure you use the option that does not create explain output during each program execution for any dynamic SQL (unless that is what is desired).
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