![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have created 2 queries which provide the same result. the first one use the where clause and the second a subcube clause. using the where clause result in 23 seconds of process (cold cache) and 3 seconds (warm cache) the subcube version always takes 23 seconds! subcube ersion: select {[Measures].[Count], [Measures].[% Time lost]} on 0, non empty ([dimension1].[attribute1].members * [dimension2].[attribute1].members ) having([Measures].[% Time Lost] > 0.9) on 1 from (select ({[dimension3].[hierarchy 1].[level 2].&[0] :[dimension3].[hierarchy 1].[level 2].&[40]} * -{[Time].[Year].&[2004]} ) on 0 from absences) Where clause version select {[Measures].[Count], [Measures].[% Time lost]} on 0, non empty ([dimension1].[attribute1].members * [dimension2].[attribute1].members ) having([Measures].[% Time Lost] > 0.9) on 1 from absences where ({[dimension3].[hierarchy 1].[level 2].&[0] :[dimension3].[hierarchy 1].[level 2].&[40]} , -{[Time].[Year].&[2004]}) I'm doing this for test purpose, but I expect better performance. Why the cache works better (or only) using the where clause? where can I find more information about subcube queries? (when to use andwhen to not use this feature) thanks. Jerome. |
#3
| |||
| |||
|
|
Hi, I have created 2 queries which provide the same result. the first one use the where clause and the second a subcube clause. using the where clause result in 23 seconds of process (cold cache) and 3 seconds (warm cache) the subcube version always takes 23 seconds! subcube ersion: select {[Measures].[Count], [Measures].[% Time lost]} on 0, non empty ([dimension1].[attribute1].members * [dimension2].[attribute1].members ) having([Measures].[% Time Lost] > 0.9) on 1 from (select ({[dimension3].[hierarchy 1].[level 2].&[0] :[dimension3].[hierarchy 1].[level 2].&[40]} * -{[Time].[Year].&[2004]} ) on 0 from absences) Where clause version select {[Measures].[Count], [Measures].[% Time lost]} on 0, non empty ([dimension1].[attribute1].members * [dimension2].[attribute1].members ) having([Measures].[% Time Lost] > 0.9) on 1 from absences where ({[dimension3].[hierarchy 1].[level 2].&[0] :[dimension3].[hierarchy 1].[level 2].&[40]} , -{[Time].[Year].&[2004]}) I'm doing this for test purpose, but I expect better performance. Why the cache works better (or only) using the where clause? where can I find more information about subcube queries? (when to use andwhen to not use this feature) thanks. Jerome. |
![]() |
| Thread Tools | |
| Display Modes | |
| |