dbTalk Databases Forums  

Flush Package Cache Dynamic

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Flush Package Cache Dynamic in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard
 
Posts: n/a

Default Flush Package Cache Dynamic - 03-28-2011 , 01:35 PM






Do you make "Flush Package Cache Dynamic" part of your RUNSTATS
routine ?
In other words do you follow runstats with FLUSH PACKAGE CACHE DYNAMIC
at the end ?

I was reading Websphere best practices when it comes to db maintenance
scripts and saw the flush package statement at the end and wondering
if it is necessary.

As a matter of fact, if you created a new index for a table with
existing data, are you suppose to runstats for that index too ?

Look forward to your replies. Thanks.

RL

Reply With Quote
  #2  
Old   
Mark A
 
Posts: n/a

Default Re: Flush Package Cache Dynamic - 03-28-2011 , 04:25 PM






"Richard" <rsl101 (AT) gmail (DOT) com> wrote

Quote:
Do you make "Flush Package Cache Dynamic" part of your RUNSTATS
routine ?
In other words do you follow runstats with FLUSH PACKAGE CACHE DYNAMIC
at the end ?

I was reading Websphere best practices when it comes to db maintenance
scripts and saw the flush package statement at the end and wondering
if it is necessary.

As a matter of fact, if you created a new index for a table with
existing data, are you suppose to runstats for that index too ?

Look forward to your replies. Thanks.

RL
I do, but not really sure whether it is needed.

Reply With Quote
  #3  
Old   
oddbande
 
Posts: n/a

Default Re: Flush Package Cache Dynamic - 03-29-2011 , 03:51 AM



On Mar 28, 8:35*pm, Richard <rsl... (AT) gmail (DOT) com> wrote:
Quote:
Do you make "Flush Package Cache Dynamic" part of your RUNSTATS
routine ?
In other words do you follow runstats with FLUSH PACKAGE CACHE DYNAMIC
at the end ?

I was reading Websphere best practices when it comes to db maintenance
scripts and saw the flush package statement at the end and wondering
if it is necessary.

As a matter of fact, if you created a new index for a table with
existing data, are you suppose to runstats for that index too ?

Look forward to your replies. Thanks.

RL
You should make COLLECT (SAMPLED DETAILED) STATISTICS part of your
CREATE INDEX statement to ensure that the optimizer will use it, if
appropriate.

Regards
Odd B Andersen, EDB ErgoGroup AS, Oslo, Norway

Reply With Quote
  #4  
Old   
Frederik Engelen
 
Posts: n/a

Default Re: Flush Package Cache Dynamic - 03-29-2011 , 04:07 AM



Quote:
As a matter of fact, if you created a new index for a table with
existing data, are you suppose to runstats for that index too ?
I always specify collect statistics as part of the index creation
statement. If the IO's have to be done anyway, you might as well use
them to get the correct statistics too.

--
Frederik Engelen

Reply With Quote
  #5  
Old   
Richard
 
Posts: n/a

Default Re: Flush Package Cache Dynamic - 03-29-2011 , 08:27 AM



Thank you experts. I never heard of COLLECT option on CREATE INDEX
before but will use it now.
Is it same as runstats for index ?

RL

Reply With Quote
  #6  
Old   
Frederik Engelen
 
Posts: n/a

Default Re: Flush Package Cache Dynamic - 03-29-2011 , 09:45 AM



On Mar 29, 3:27*pm, Richard <rsl... (AT) gmail (DOT) com> wrote:
Quote:
Thank you experts. *I never heard of COLLECT option on CREATE INDEX
before but will use it now.
Is it same as runstats for index ?

RL
As far as I know, yes.

--
Frederik Engelen

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.