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 > Prefetch Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-07, 11:10
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
Prefetch Issue

DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08028"
with level identifier "03090106".
Informational tokens are "DB2 v8.1.0.136", "s070720", "U810953", and FixPak
"15".
Product is installed at "/opt/IBM/db2/V8.1".

Solaris 8

I have a query similiar to:

(1) select col1, col2 from tableA where date between x and y
and col3 in (subselectA)
and col4 in (subselectB)
group by col1

(2) select col1, col2 from tableA where date between x and y
and col3 in (subselectA)
group by col1

(3) select col1, col2 from tableA where date between x and y
group by col1

1 Does not use prefetching for tableA, however both 2 and 3 does. Any ideas why ?
Reply With Quote
  #2 (permalink)  
Old 12-05-07, 11:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I guess , as per statistics, "col4 in (subselectB)" will reduce the resultset to a small number.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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