dbTalk Databases Forums  

AS2005: distinct count measure which one is better?

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


Discuss AS2005: distinct count measure which one is better? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default AS2005: distinct count measure which one is better? - 01-20-2006 , 12:06 PM






Hi,

I have to do a dynamic distinct count in an AS2005 cube.
I have 2 formulas:

count(exists(descendants([Stores].[Store Code].currentmember,,leaves),
{measures.[#HighSales]}, "HighSales for DCount"))



count(nonempty(descendants([Stores].[Store Code].currentmember,,leaves),
[Measures].[#HighSales]))

#HighSales is a simple count measure and I have a dedicated measure group
"HighSales for DCount"

which formula perform better? :-)

its difficult to see a difference because I work on a subset of data (2000
members, 200 000 rows in the fact table while the production will have
millions and 50 000 members in the dimension) and the server has some cache.

so, from a theoritical point of view, what are your recommandations?



thanks.



Jerome.







Reply With Quote
  #2  
Old   
Vladimir Chtepa
 
Posts: n/a

Default Re: AS2005: distinct count measure which one is better? - 01-24-2006 , 07:35 AM






Hi,

I would recommend you to test all your queries in OVER production
conditions.
Only this allows yout to predict behaviour all (almost all) of your queries.

Vladimir Chtepa


"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> schrieb im Newsbeitrag
news:OgA7DxeHGHA.1288 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
Hi,

I have to do a dynamic distinct count in an AS2005 cube.
I have 2 formulas:

count(exists(descendants([Stores].[Store Code].currentmember,,leaves),
{measures.[#HighSales]}, "HighSales for DCount"))



count(nonempty(descendants([Stores].[Store Code].currentmember,,leaves),
[Measures].[#HighSales]))

#HighSales is a simple count measure and I have a dedicated measure group
"HighSales for DCount"

which formula perform better? :-)

its difficult to see a difference because I work on a subset of data (2000
members, 200 000 rows in the fact table while the production will have
millions and 50 000 members in the dimension) and the server has some
cache.

so, from a theoritical point of view, what are your recommandations?



thanks.



Jerome.









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.