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 > How to know my query is the optimized one.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-09, 04:11
hmuraleedhar hmuraleedhar is offline
Registered User
 
Join Date: Mar 2009
Posts: 1
How to know my query is the optimized one.

Hi all,

I just want to know how we can ensure our query is the optimized one ? Any way to optimize the querry by ourselves .
Reply With Quote
  #2 (permalink)  
Old 07-30-09, 08:30
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The best way to know if a query is performing well is to examine the number of row read to the number of rows selected. The larger the ratio, the worse the query is performing. Who better to optimize the query than the person who knows the system the best.


Andy
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