dbTalk Databases Forums  

MDX query slow

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


Discuss MDX query slow in the microsoft.public.sqlserver.olap forum.



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

Default MDX query slow - 08-20-2005 , 03:16 PM






Hi

I have a MDX query which takes 2 minutes to execute

with member measures.getlaststatus as
'tail(nonemptycrossjoin([Reference].members), 1).item(0).item(0).name'
select {measures.getlaststatus} on columns,
nonemptycrossjoin({[Person].members}) on rows
from answercube
where ([Client].[BOA])

Is there a way to speed up this query.

TIA

Milind


Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: MDX query slow - 08-20-2005 , 10:06 PM






try to specify a measure in your nonemptycrossjoin

try to use the "non empty person.members on rows" instead-of the
nonemptycrossjoin
verify that your measure is aggregated at the reference & person levels
(maybe use a dedicated cube)

try to change your connection string by adding:
cache policy=7;cache ratio=0.001;cache ratio2=0.001;non empty threshold=1


"Milind" <milind.bhabal (AT) gmail (DOT) com> wrote

Quote:
Hi

I have a MDX query which takes 2 minutes to execute

with member measures.getlaststatus as
'tail(nonemptycrossjoin([Reference].members), 1).item(0).item(0).name'
select {measures.getlaststatus} on columns,
nonemptycrossjoin({[Person].members}) on rows
from answercube
where ([Client].[BOA])

Is there a way to speed up this query.

TIA

Milind



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.