![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| MEMBER [Destination].[Slicer] AS '(([Destination].[All Destination]) - |
#3
| |||
| |||
|
|
One obvious optimization in [Destination Slicer] would be to use an [All] Member, instead of summing over all leaf members (depending on the number of members). |
|
Beyond that, is there any pattern to the listed locations, which would permit the use of pre-aggregated cube data? |
#4
| |||
| |||
|
|
Hi, Running the query below takes a very long time to complete (several minutes). Most of this time is spent with the client CPU running at 100%, the OLAP server idling at 0% (or thereabouts), and no network activity. My questions are: 1. Is there a way to optimize the way the query is written? The query is simple in concept; the Source has to be one of the 100 listed locations and the Destination must NOT be one of the listed locations. 2. What is the client doing with 100% of the CPU? If there is no network activity, what can it possibly be processing or preparing? Thanks, Charlie The query: WITH MEMBER [Source].[Slicer] AS '[Source].[001] + [Source].[002] + 003, 004, etc ... + [Source].[100]' MEMBER [Destination].[Slicer] AS 'SUM(Destination.Destination.MEMBERS) - ([Destination].[001] + [Destination].[002] + 003, 004, etc ... + [Destination].[100])' SELECT {[MEASURES].MEMBERS} ON COLUMNS, {[MonthlyTime].MEMBERS} ON ROWS FROM [MyCube] WHERE ([Destination].[Slicer],[Source].[Slicer]) |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Thanks for that read. The problem is not the bandwidth or the sending of the data. So I don't know how much of a speed difference it will make asking for server execution. Besides I tried that connection string change yesterday and it seemed to produce an unstable connection (the application reported all sorts of strange errors fetching dimension data). I believe the problem is in the way the client applies the where condition. See the thread "Why is this query faster?" in this group for the question this has led me to. Thanks, Charlie |
![]() |
| Thread Tools | |
| Display Modes | |
| |