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 > Runstats in V8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-02-08, 16:22
t_geetha t_geetha is offline
Registered User
 
Join Date: Jan 2008
Posts: 1
Runstats in V8

I am trying to understand the new option COLGROUP in V8 Runstats.

We use the following syntax that collects stats on all columns and all indexes.
RUNSTATS TABLESPACE tsname
TABLE INDEX(ALL)
REPORT YES UPDATE ALL

Does the COLGROUP option collects any extra stats other than the one ran as above? What's the advantage of COLGROUP and when should be used?

Also, is there any disadvantage of using KEYCARD for index runstats? Is it always preferrable?

We are using DB2 V8 for z/OS. Some in compatibility mode and some are NFM.

I appreciate your comments!
Reply With Quote
  #2 (permalink)  
Old 01-03-08, 05:41
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
With COLGROUP, you can tell the DB2 utility to collect statistics about correlations of the values in columns list the group. A regular RUNSTATS won't do that automatically.

The manual says:
Quote:
When you specify the COLGROUP keyword, RUNSTATS collects correlation statistics for the specified column group.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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