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 > Sort overflows and db2 tuning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-08, 15:52
savethytrees savethytrees is offline
Registered User
 
Join Date: Dec 2006
Posts: 25
Sort overflows and db2 tuning

I have been seeing a lot of sortoverflows for some of our databases. I have observed sortflows of upto 50% on some of them. I have read the guidelines for tuning DB2 for better sorting performance. But apart from changing sortheap and the threshold is there anything else that I should be looking into. Or increasing sortheap and the threshold, the only option I have.

Thank you

DB2 v8.2 and 9.1 on AIX 5.3
Reply With Quote
  #2 (permalink)  
Old 12-03-08, 16:06
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Sorts don't happen by themselves, they are a part of SQL execution plans. I would look at the dynamic sql snapshots to determine which queries cause most overflows and then study their plans to see how the sorts could be optimized or eliminated by adding indexes or rewriting the queries.
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