Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old May 23rd, 2006, 10:05 AM
PaulR
Guest
 
Posts: n/a
Default What in validates Dynamic SQL Packages in Package Cache ?

Hi,

I am trying to understand what invalidates Dynamic Packages in the
Package Cache.

By monitoring the Size of the Package Cache, it appears the following
does

1. Performing a Runstats on all Tables reduces the Used Package Cache
from some 200+MB to about 30MB ??

2. Performing a Refresh of an MQT appears to cause some packages to be
recompiled?

This is causing us pain as we have some Dynamic packages that take
considerable time (10secs +) to compile and so it is imperative we hold
them in the package cache.

Can anybody inform us what will invalidate Dynamic Packages - and if
our observations are correct?

Many Thanks.
Paul

  #2  
Old May 23rd, 2006, 12:15 PM
Serge Rielau
Guest
 
Posts: n/a
Default Re: What in validates Dynamic SQL Packages in Package Cache ?

PaulR wrote:[color=blue]
> Hi,
>
> I am trying to understand what invalidates Dynamic Packages in the
> Package Cache.
>
> By monitoring the Size of the Package Cache, it appears the following
> does
>
> 1. Performing a Runstats on all Tables reduces the Used Package Cache
> from some 200+MB to about 30MB ??
>
> 2. Performing a Refresh of an MQT appears to cause some packages to be
> recompiled?
>
> This is causing us pain as we have some Dynamic packages that take
> considerable time (10secs +) to compile and so it is imperative we hold
> them in the package cache.
>
> Can anybody inform us what will invalidate Dynamic Packages - and if
> our observations are correct?[/color]
Whenever is an action is performed on an object upon which a statement
in the cache depends these statements are invalidated.
If you do runstats on ALL tables, then yes, nearly all statements will
be invalidated because DB2 presumes you're going to want to pick up new
plans.

I suppose you could round robin your runstats...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
  #3  
Old May 23rd, 2006, 04:45 PM
PaulR
Guest
 
Posts: n/a
Default Re: What in validates Dynamic SQL Packages in Package Cache ?

Thanks Serge,

Guess that's working as designed then - is there a option anywhere to
disable using new Stats. for existing statements?

And I guess the same goes for statements referencing MQTs after a
Refresh?

  #4  
Old May 24th, 2006, 09:45 AM
Serge Rielau
Guest
 
Posts: n/a
Default Re: What in validates Dynamic SQL Packages in Package Cache ?

PaulR wrote:[color=blue]
> Thanks Serge,
>
> Guess that's working as designed then - is there a option anywhere to
> disable using new Stats. for existing statements?
>
> And I guess the same goes for statements referencing MQTs after a
> Refresh?
>[/color]
That kind of goes against the whole idea. Can you reason this out for
me. I need to understand the pain point (compile cpu load, what if,
....?) (Perhaps offline).

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
 

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,338 network members.