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 > Nested loop join

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-12, 00:35
pakkalan pakkalan is offline
Registered User
 
Join Date: Jan 2012
Posts: 1
Nested loop join

Dear all

Why cost of nested loop join is so high,I try to run query as follow:


Code:
SELECT CUSTOMER.CUST_ID,
DETAIL.CITIZENID 
FROM CUSTOMER CUSTOMER 					
INNER JOIN CUSTOMER_DETAIL DETAIL  				
ON CUSTOMER.CUST_ID = DETAIL.CUST_ID
Attached Thumbnails
Nested loop join-cost.png  
Reply With Quote
  #2 (permalink)  
Old 01-03-12, 00:53
amitrai4 amitrai4 is offline
Registered User
 
Join Date: Aug 2011
Posts: 46
probably, better question would be, what is the desired execution time for this sql and what execution time you are getting. 962 timerons are not exceptionally bad cost estimation.
Reply With Quote
  #3 (permalink)  
Old 01-04-12, 00:53
fengsun2 fengsun2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 124
yeah, amitrai4 is right.
Why do you think nestloop join will be a low cost join method?
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