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 > MQT Refresh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-04, 06:18
cchattell cchattell is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
MQT Refresh

Hi,

I have just implemented some Refresh Deferred MQTS in version 8 and am having a few issues with the performance of the refresh command.
From a base table(100million rows) i am refreshing an MQT to aggregate up to daily level. This seems to be ok.
I am then refreshing an MQT to aggregate up to weekly level, this is where the problems start.
If you execute the SQL in the create weekly MQT as a simple select the data is retrieved quickly as the select is redirected to the daily MQT.
However as soon as you issue the weekly MQT refresh the refresh is performed against the base tables, hence taking 2 to 3 times longer.
Does anyone know if this is the intended functionality or is there is something i can do to force it to redirect to the MQT.

N.B. we are not in a position to use refresh immediate or staging tables to do an incremental refresh!

Any help/ideas would be grately appriciated.
Clive
Reply With Quote
  #2 (permalink)  
Old 01-30-04, 16:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: MQT Refresh

Did you do a RUNSTATS on MQT following the change in definition ?

If you haven't, I suggest you do and test ...

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-02-04, 11:29
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: MQT Refresh

Quote:
Originally posted by sathyaram_s
Did you do a RUNSTATS on MQT following the change in definition ?

If you haven't, I suggest you do and test ...

Cheers
Sathyaram
Hi Guys,
one question:
if we have host variable in our sql statement can we create MQT?

Thank you in advance for your answer.
Reply With Quote
  #4 (permalink)  
Old 02-03-04, 02:57
cchattell cchattell is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Re: MQT Refresh

Quote:
Originally posted by sathyaram_s
Did you do a RUNSTATS on MQT following the change in definition ?

If you haven't, I suggest you do and test ...

Cheers
Sathyaram
I have done a run stats,
Any other ideas.
Reply With Quote
  #5 (permalink)  
Old 02-03-04, 03:13
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: MQT Refresh

Only your statistics on your MQT and base table, and your query can explain this behaviour

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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