dbTalk Databases Forums  

MDX + Paging

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


Discuss MDX + Paging in the microsoft.public.sqlserver.olap forum.



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

Default MDX + Paging - 10-13-2003 , 08:52 AM






Hi all,
Any ideas of how to implement a scalable Paging
soluion using MDX (subset is not an option since
it first retrieves all data).



Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: MDX + Paging - 10-13-2003 , 02:00 PM






"yanec" <yaniv.inbar (AT) retalix (DOT) com> wrote

Quote:
Hi all,
Any ideas of how to implement a scalable Paging
soluion using MDX (subset is not an option since
it first retrieves all data).
Can you please elaborate more on the problem that you are trying to solve.
Usually, PTS will do intelligent paging automatically, and its behaviour can
be tuned by using Cache Policy, Cache Ratio etc connection string
properties.

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




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

Default Re: MDX + Paging - 10-14-2003 , 02:25 AM



Hi Mosha,
We have a web based Olap Viewer that we developed.
The problem is that if a user performs a query that
generates large results, we do not want to display
the entire cellset at the client - we would like
to give the user a paging like mechanisem.

We prefer to solve this issue at the Olap server level
(by using MDX) and not in our middle tier.
So we played with SubSet but then we realized that
subset is not a scalable solution becouse it seems that
first the olap prepares the entire mdx query data and
only then apply's the subset - this prooved to be very
slow while working with medium-large results.

We also noticed that after the first query - most data
is in the Olap cach so future subset querys at the same
dimmension are fast.

Quote:
-----Original Message-----
"yanec" <yaniv.inbar (AT) retalix (DOT) com> wrote in message
news:123001c39191$4c200c40$a301280a (AT) phx (DOT) gbl...
Hi all,
Any ideas of how to implement a scalable Paging
soluion using MDX (subset is not an option since
it first retrieves all data).

Can you please elaborate more on the problem that you are
trying to solve.
Usually, PTS will do intelligent paging automatically,
and its behaviour can
be tuned by using Cache Policy, Cache Ratio etc
connection string
properties.

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no
warranties, and
confers no rights.
==================================================


.


Reply With Quote
  #4  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: MDX + Paging - 10-15-2003 , 12:08 AM



Quote:
So we played with SubSet but then we realized that
subset is not a scalable solution becouse it seems that
first the olap prepares the entire mdx query data and
only then apply's the subset
This is not really true. Example:

SELECT Head(Dim1.Members, 100) on COLUMNS, Head(Dim2.Members, 100) on ROWS
FROM cube

will not populate all the cells in the intersection of Dim1 and Dim2, but
just those which have coordinates in the first hundrend.
You could take the following approach to the paging problem:

CREATE SET cube.MyColumns AS 'whatever you want your columns to be'
CREATE SET cube.MyRows AS 'whatever you want your columns to be'

SELECT SubSet(MyColumns, ColStart, ColLen) ON COLUMNS, SubSet(MyRows,
RowStart, RowLen) ON ROWS

where ColStart/ColLen/RowStart/RowLen is the moving window. I beleive you
should get reasonable performance with it.
If you still have performance problems - we can take a look at various
connection string properties...

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




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.