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 question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-07, 03:12
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
runstats question

I'm using sampling to try and cut down in the time the following runstats command takes. However, it takes just about as much time with sampling compared to when I don't use sampling. Any ideas why?

DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08022"
with level identifier "03030106".
Informational tokens are "DB2 v8.1.0.89", "special_15295", "U800790_15295", and
FixPak "9".
Product is installed at "/opt/IBM/db2/V8.1".

Solaris 8


runstats on table LS2USER.TLS_GL_ENTRY with distribution and sampled detailed indexes all shrlevel reference tablesample bernoulli(10) ;
Reply With Quote
  #2 (permalink)  
Old 07-16-07, 08:28
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How big is the table? How volatile is it? When was the last time a reorg was performed on the table?

Andy
Reply With Quote
  #3 (permalink)  
Old 07-17-07, 00:07
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would only collect distribution on key columns (those that are indexed).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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