<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>How many members are in each of your dimensions?&nbsp; Are there
values for each intersection?&nbsp; Mondrian has a couple of parameters you can
set to handle axes with high cardinality better, mondrian.native.nonempty.enable
and mondrian.native.crossjoin.enable.&nbsp; Turning them on will enable Mondrian
to evaluate the whole crossjoin with a single SQL.&nbsp; Caveat is the axis has
to have &#8220;non empty&#8221; specified.&nbsp; Hope that helps.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Kurt<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mondrian-bounces@pentaho.org [mailto:mondrian-bounces@pentaho.org] <b>On Behalf
Of </b>Venkatesh U<br>
<b>Sent:</b> Wednesday, October 20, 2010 7:07 AM<br>
<b>To:</b> mondrian@pentaho.org<br>
<b>Subject:</b> [Mondrian] Issue with Cross Join 10 dimensions<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi ,<br>
<br>
&nbsp; What I observed generally is it takes very longer when i try to do a
crossjoin with more than 7 dimensions. I am trying to run the below query it
runs for a very longer time <br>
<br>
select {<br>
CrossJoin([Service].Members,CrossJoin([Product].Members,CrossJoin([Month].Members,CrossJoin([TOD].Members,CrossJoin([IO].Members,[ForeignNetwork].Members)))))<br>
} on rows,<br>
{[Measures].Members}<br>
on columns<br>
from [ServiceFactsByMonthWC]<br>
<br>
Below is the tail of log file where mondrian is spending lot of time. What is
it doing? Is there any way to optimize cross joins? . I am trying to use cross
join as an option to prepopulate the Cube with a single MDX query, so that the
subsequent executions will be faster, is there any better way to prepopulate
the Cube, please let me know if there are any,<br>
<br>
<br>
DEBUG http-8080-4 mondrian.rolap.FastBatchingCellReader -
FastBatchingCellReader:
bitkey=0x0000000000000000000000000000000000000000000000000001101011110000<br>
&nbsp; Service (4): &quot;SERVICE_DIMENSION&quot;.&quot;SERVICE_NAME&quot;<br>
&nbsp; Product (5): &quot;PRODUCT_DIMENSION&quot;.&quot;PRODUCT_NAME&quot;<br>
&nbsp; Year (6): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_YEAR&quot;<br>
&nbsp; Quarter (7): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_QUARTER&quot;<br>
&nbsp; Month (Key) (9):
&quot;MONTH_DIMENSION&quot;.&quot;CALENDER_MONTH_NUMBER_IN_YEAR&quot;<br>
&nbsp; IO (11): &quot;INCOMING_OUTGOING_DIMENSION&quot;.&quot;DIRECTION&quot;<br>
&nbsp; ForeignNetworkName (12):
&quot;FOREIGN_NETWORK_DIMENSION&quot;.&quot;FND_NAME&quot;<br>
<br>
DEBUG http-8080-4 mondrian.rolap.FastBatchingCellReader -
FastBatchingCellReader:
bitkey=0x0000000000000000000000000000000000000000000000000000011011110000<br>
&nbsp; Service (4): &quot;SERVICE_DIMENSION&quot;.&quot;SERVICE_NAME&quot;<br>
&nbsp; Product (5): &quot;PRODUCT_DIMENSION&quot;.&quot;PRODUCT_NAME&quot;<br>
&nbsp; Year (6): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_YEAR&quot;<br>
&nbsp; Quarter (7): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_QUARTER&quot;<br>
&nbsp; Month (Key) (9): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_MONTH_NUMBER_IN_YEAR&quot;<br>
&nbsp; TOD (10): &quot;TIME_OF_DAY_DIMENSION&quot;.&quot;TOD_NAME&quot;<br>
<br>
DEBUG http-8080-4 mondrian.rolap.FastBatchingCellReader -
FastBatchingCellReader:
bitkey=0x0000000000000000000000000000000000000000000000000001011011110000<br>
&nbsp; Service (4): &quot;SERVICE_DIMENSION&quot;.&quot;SERVICE_NAME&quot;<br>
&nbsp; Product (5): &quot;PRODUCT_DIMENSION&quot;.&quot;PRODUCT_NAME&quot;<br>
&nbsp; Year (6): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_YEAR&quot;<br>
&nbsp; Quarter (7): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_QUARTER&quot;<br>
&nbsp; Month (Key) (9):
&quot;MONTH_DIMENSION&quot;.&quot;CALENDER_MONTH_NUMBER_IN_YEAR&quot;<br>
&nbsp; TOD (10): &quot;TIME_OF_DAY_DIMENSION&quot;.&quot;TOD_NAME&quot;<br>
&nbsp; ForeignNetworkName (12):
&quot;FOREIGN_NETWORK_DIMENSION&quot;.&quot;FND_NAME&quot;<br>
<br>
DEBUG http-8080-4 mondrian.rolap.FastBatchingCellReader -
FastBatchingCellReader:
bitkey=0x0000000000000000000000000000000000000000000000000000111011110000<br>
&nbsp; Service (4): &quot;SERVICE_DIMENSION&quot;.&quot;SERVICE_NAME&quot;<br>
&nbsp; Product (5): &quot;PRODUCT_DIMENSION&quot;.&quot;PRODUCT_NAME&quot;<br>
&nbsp; Year (6): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_YEAR&quot;<br>
&nbsp; Quarter (7): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_QUARTER&quot;<br>
&nbsp; Month (Key) (9):
&quot;MONTH_DIMENSION&quot;.&quot;CALENDER_MONTH_NUMBER_IN_YEAR&quot;<br>
&nbsp; TOD (10): &quot;TIME_OF_DAY_DIMENSION&quot;.&quot;TOD_NAME&quot;<br>
&nbsp; IO (11): &quot;INCOMING_OUTGOING_DIMENSION&quot;.&quot;DIRECTION&quot;<br>
<br>
DEBUG http-8080-4 mondrian.rolap.FastBatchingCellReader -
FastBatchingCellReader:
bitkey=0x0000000000000000000000000000000000000000000000000001111011110000<br>
&nbsp; Service (4): &quot;SERVICE_DIMENSION&quot;.&quot;SERVICE_NAME&quot;<br>
&nbsp; Product (5): &quot;PRODUCT_DIMENSION&quot;.&quot;PRODUCT_NAME&quot;<br>
&nbsp; Year (6): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_YEAR&quot;<br>
&nbsp; Quarter (7): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_QUARTER&quot;<br>
&nbsp; Month (Key) (9): &quot;MONTH_DIMENSION&quot;.&quot;CALENDER_MONTH_NUMBER_IN_YEAR&quot;<br>
&nbsp; TOD (10): &quot;TIME_OF_DAY_DIMENSION&quot;.&quot;TOD_NAME&quot;<br>
&nbsp; IO (11): &quot;INCOMING_OUTGOING_DIMENSION&quot;.&quot;DIRECTION&quot;<br>
&nbsp; ForeignNetworkName (12):
&quot;FOREIGN_NETWORK_DIMENSION&quot;.&quot;FND_NAME&quot;<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>

</div>

</body>

</html>