Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:40 AM
cbcobb@gmail.com
Guest
 
Posts: n/a
Default Faster Runstats?

Running DB2/UDB 8.1 on Linux, 16G RAM, 8 processors. We are currently
converting data from legacy systems and after importing large amounts
of data into multiple tables, I run a script that executes runstats on
all columns with distribution on all columns and detailed indexes for
every table in the database. At first, I had the default setting for
stat_heap_sz, but increased it to 20000 and then 100000 and still
haven't seen any improvement in speed. Currently, it takes about 2
hours to execute runstats. Any suggestions for increasing the speed?

Thanks,

Chris

  #2  
Old November 12th, 2005, 11:40 AM
Ian
Guest
 
Posts: n/a
Default Re: Faster Runstats?

cbcobb@gmail.com wrote:[color=blue]
> Running DB2/UDB 8.1 on Linux, 16G RAM, 8 processors. We are currently
> converting data from legacy systems and after importing large amounts
> of data into multiple tables, I run a script that executes runstats on
> all columns with distribution on all columns and detailed indexes for
> every table in the database. At first, I had the default setting for
> stat_heap_sz, but increased it to 20000 and then 100000 and still
> haven't seen any improvement in speed. Currently, it takes about 2
> hours to execute runstats. Any suggestions for increasing the speed?[/color]

STAT_HEAP_SZ doesn't affect performance.

Runstats will basically do table and index scans, so you want to
tune your bufferpools and prefetching. Look at your tablespace layout
and how the tablespace containers are placed on your disk drives.

Also you could consider using sampling via the TABLESAMPLE and SAMPLED
INDEXES option.

Or, (make IBM happy) and license the database partitioning feature. :-)

  #3  
Old November 12th, 2005, 11:40 AM
Mark A
Guest
 
Posts: n/a
Default Re: Faster Runstats?

<cbcobb@gmail.com> wrote in message
news:1124725588.787604.289380@g47g2000cwa.googlegr oups.com...[color=blue]
> Running DB2/UDB 8.1 on Linux, 16G RAM, 8 processors. We are currently
> converting data from legacy systems and after importing large amounts
> of data into multiple tables, I run a script that executes runstats on
> all columns with distribution on all columns and detailed indexes for
> every table in the database. At first, I had the default setting for
> stat_heap_sz, but increased it to 20000 and then 100000 and still
> haven't seen any improvement in speed. Currently, it takes about 2
> hours to execute runstats. Any suggestions for increasing the speed?
>
> Thanks,
>
> Chris
>[/color]
Most likely you do not need distribution on all columns. Key columns is
enough. This is especially true now that you have run it once with all
columns.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.