dbTalk Databases Forums  

Optimize Query

comp.databases.olap comp.databases.olap


Discuss Optimize Query in the comp.databases.olap forum.



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

Default Optimize Query - 08-08-2005 , 03:22 PM






I have a query which returns some summary values for last Month, the
last 14 days, and a to date summary based on a specified dat, which is
always the previous saturday from when the query was run. This query is
ainfully slow and I realy do not know where to start in speeding it up.
It is hitting a cube which is partitioned at the month level and each
partition points to a seperate fact table.



WITH MEMBER [Time].[YMD].[To Date] AS ''AGGREGATE({[Time].[YMD].[All
Time].[2000].[January].[1]:[Time].[YMD].[All
Time].[2005].[August].[6]})''
SELECT
{[Time].[YMD].[All Time].[2005].[July],[Time].[YMD].[All
Time].[2005].[July].[24]:[Time].[YMD].[All
Time].[2005].[August].[6],[Time].[YMD].[To Date]} ON COLUMNS,
NON EMPTY NEST (
NEST (
[Product.DP].Members,[Product.Title].Members
)
, {
[Measures].[Launches]
,[Measures].[Games Played]
,[Measures].[Players]
,[Measures].[Time Played]
,[Measures].[Avg Time per Player]
}
) ON ROWS
FROM [GameStats Activity]


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.