dbTalk Databases Forums  

Distinct Function

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


Discuss Distinct Function in the microsoft.public.sqlserver.olap forum.



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

Default Distinct Function - 11-14-2006 , 08:28 AM






Hi All,

I have used Distinct function in my mdx query to avoid duplicate
values.

I want to know what performance effect it will have on execution of
query.

With large volume of data query is taking more time to execute with
Distinct function. If we remove it it is taking less time.

Any inputs is appreciated.

Raghu


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

Default Re: Distinct Function - 11-14-2006 , 10:28 AM






do you use AS2000 or 2005?

the distinct function is one of the functions which greatly impact the
performance.

do you use it to count the number of distinct values?
or do you use it to list a set of non duplicated members?

"Raghu" <raghubd (AT) gmail (DOT) com> wrote

Quote:
Hi All,

I have used Distinct function in my mdx query to avoid duplicate
values.

I want to know what performance effect it will have on execution of
query.

With large volume of data query is taking more time to execute with
Distinct function. If we remove it it is taking less time.

Any inputs is appreciated.

Raghu


Reply With Quote
  #3  
Old   
Raghu
 
Posts: n/a

Default Re: Distinct Function - 11-15-2006 , 11:35 AM



I use AS2000.

It is used to get a set of non duplicated members.

Jéjé,

In one forum I read, before accessing the cell values AS engine removes
duplicates first if it is placed on the axis of SELECT query. In my
case it is applied on the axis of SELECT query.

You mentioned that it greatly affects the performance of the query.
Where Distinct will affect?

1. While fetching set of non duplicated members. or
2. While fetching cell values.

Raghu

Jéjé wrote:
Quote:
do you use AS2000 or 2005?

the distinct function is one of the functions which greatly impact the
performance.

do you use it to count the number of distinct values?
or do you use it to list a set of non duplicated members?

"Raghu" <raghubd (AT) gmail (DOT) com> wrote in message
news:1163514495.201935.122300 (AT) k70g2000cwa (DOT) googlegroups.com...
Hi All,

I have used Distinct function in my mdx query to avoid duplicate
values.

I want to know what performance effect it will have on execution of
query.

With large volume of data query is taking more time to execute with
Distinct function. If we remove it it is taking less time.

Any inputs is appreciated.

Raghu



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.