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 > Merge Scans

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-04, 19:28
soundharya_s soundharya_s is offline
Registered User
 
Join Date: May 2002
Posts: 30
Merge Scans

I get loads of merge scans in my access plans ... This causes sorts leading to slow response and excessive CPU Utilization

Are there any generic tips/techniques to avoid Merge Scans ?

BTW, this is DB2 V8 on AIX

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-15-04, 03:17
hurmavi hurmavi is offline
Registered User
 
Join Date: Jan 2004
Location: Europe, Finland, Helsinki
Posts: 60
Well...my knowledge is from z/OS environment, but priciples are usually same.

Probably some of these are helpfull:
- your tables may be large and have no (good) indexes with matching columns.
- join predicate are not restictive enough and offers too little filtering (many-to-many join?)
- RUNSTATS ok? DB2 is thinking that both outer and inner table will produce a lot of rows - so MERGE SCAN is chosen.

Cheers, Bill
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