dbTalk Databases Forums  

Query Performance Help

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Query Performance Help in the microsoft.public.sqlserver.olap forum.



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

Default Query Performance Help - 08-07-2003 , 07:55 PM






I've built some generic functions in an "Aggregations" dimension to return
the Max, Min, Median, etc. for the current slicing for whatever measures are
displayed. The general syntax is as follows:

median(
nonemptycrossjoin(
descendants([DateTimes].currentmember,[DateTimes].[Hour],Self),
descendants([Iteration].currentmember,[Iteration].[Iteration],Self),
{[Aggregations].&[1]}
)
)

I want the functions to find, in this case, the median value across hours
and monte carlo iterations for the current slicing and measure(s). The
functions work, but are way too slow. The functions are in a virtual cube,
and there are virtual dimensions in the underlying physical cubes. There
are 8-20 million rows in the virtual cube set depending on the study.

Is there another approach that might yield the same functionality, but will
perform better?

Thanks
Jim



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.