dbTalk Databases Forums  

MDX Search Member facility

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


Discuss MDX Search Member facility in the microsoft.public.sqlserver.olap forum.



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

Default MDX Search Member facility - 08-05-2003 , 09:36 AM






Hi,

we are trying to find a fast way of searching an MSOLAP cube for members.
Our search facility supports case sensitive and wildcard queries. So far, we
have been using the Filter() function, where we are using String
modification functions as LCase (for case insensitive queries) and InStr
(for wild card queries). This functions ok, but slow.

A complete query looks like
----------
SELECT
{
Filter(
[Time].Members as MemberList,
(LCase(MemberList.CurrentMember.Properties("CAPTIO N")) = "q1")
OR (LCase (MemberList.CurrentMember.Properties("NAME")) =
"q1")
)
} ON COLUMNS
FROM [Sales]
----------

which searches members with q1 as name or caption.

This is rather slow. My question is is there any other way of searching an
MSOLAP cube for members with a given name and/or caption?

Thanks for your help.
Also any comment is highly appreciated.

Cheers,
Stephan




Reply With Quote
  #2  
Old   
Jon Jahren
 
Posts: n/a

Default Re: MDX Search Member facility - 08-08-2003 , 04:24 AM






Stephan,

This would always be faster (if you can use it):

SELECT
FROM [Sales]
where ( [Time].q1)

Jon Jahren

"Stephan Klaffer" <stephan.klaffer (AT) ____no_spam____decisionworks (DOT) co.uk> wrote
in message news:%231pERa1WDHA.2080 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Quote:
Hi,

we are trying to find a fast way of searching an MSOLAP cube for members.
Our search facility supports case sensitive and wildcard queries. So far,
we
have been using the Filter() function, where we are using String
modification functions as LCase (for case insensitive queries) and InStr
(for wild card queries). This functions ok, but slow.

A complete query looks like
----------
SELECT
{
Filter(
[Time].Members as MemberList,
(LCase(MemberList.CurrentMember.Properties("CAPTIO N")) = "q1")
OR (LCase (MemberList.CurrentMember.Properties("NAME")) =
"q1")
)
} ON COLUMNS
FROM [Sales]
----------

which searches members with q1 as name or caption.

This is rather slow. My question is is there any other way of searching an
MSOLAP cube for members with a given name and/or caption?

Thanks for your help.
Also any comment is highly appreciated.

Cheers,
Stephan






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.