<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
@font-face
        {font-family:"Lucida Sans";
        panose-1:2 11 6 2 3 5 4 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.balloontextchar0
        {mso-style-name:balloontextchar;
        mso-style-priority:99;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.tx1
        {mso-style-name:tx1;
        font-weight:bold;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle31
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle32
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:108668901;
        mso-list-template-ids:-1913911674;}
@list l0:level1
        {mso-level-start-at:2;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:210383702;
        mso-list-type:hybrid;
        mso-list-template-ids:419074682 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2
        {mso-list-id:1049453685;
        mso-list-template-ids:809921184;}
@list l2:level1
        {mso-level-start-at:3;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3
        {mso-list-id:1235555291;
        mso-list-template-ids:-383233206;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</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=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Forwarding to the Mondrian
Developer Mailing List.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks Daphne!!!&nbsp; I believe
we&#8217;ve also saw that this was still an issue in 3.1.2 right?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>-Peter<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<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"'> Huei-Ju Chen <br>
<b>Sent:</b> Monday, August 24, 2009 10:48 AM<br>
<b>To:</b> jhyde@pentaho.com<br>
<b>Cc:</b> Peter Tran<br>
<b>Subject:</b> RE: [Mondrian] Performance issue with large number of measures
inMondrian 3.0.4<o:p></o:p></span></p>

</div>

</div>

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

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hi Julian,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Here is how I reproduced this issue in foodmart:<o:p></o:p></span></p>

<ol style='margin-top:0in' start=1 type=1>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo3'><span
     style='font-size:10.0pt;font-family:"Arial","sans-serif"'>add the
     following calculated measures in the Sales cube. M0 is the sum of 7 base
     measures. M1 is the sum of M0 and 17 base measures. M2 is the sum of M1
     and 17 base measures.<o:p></o:p></span></li>
</ol>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#333399'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; &lt;CalculatedMember <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
name=&quot;M0&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
dimension=&quot;Measures&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
formula=&quot;[Measures].[Unit Sales] + [Measures].[Store Cost] +
[Measures].[Store Sales] + [Measures].[Customer Count] + [Measures].[Sales
Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]&quot; /&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp; &lt;CalculatedMember <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
name=&quot;M1&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
dimension=&quot;Measures&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
formula=&quot;[Measures].[M0] + [Measures].[Unit Sales] + [Measures].[Store Cost]
+ [Measures].[Store Sales] + [Measures].[Customer Count] + [Measures].[Sales
Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales
Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales
Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales
Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales
Count]&quot; /&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;CalculatedMember <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
name=&quot;M2&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
dimension=&quot;Measures&quot; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
formula=&quot;[Measures].[M1] + [Measures].[Unit Sales] + [Measures].[Store
Cost] + [Measures].[Store Sales] + [Measures].[Customer Count] +
[Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+
[Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+
[Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+
[Measures].[Sales Count]+ [Measures].[Sales Count]+ [Measures].[Sales Count]+
[Measures].[Sales Count]&quot; /&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</o:p></span></p>

<ol style='margin-top:0in' start=2 type=1>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo3'><span
     style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Select M1 in the
     query. It took 3.5 seconds to return.<o:p></o:p></span></li>
</ol>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
WITH<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>SET [#DataSet#] as 'NonEmptyCrossjoin(<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>{ [Product].[Food]},<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>{Descendants([Store].[USA], 1)}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>)'<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>SELECT {[Measures].[M1]} on columns, NON
EMPTY Hierarchize({[#DataSet#]}) on rows FROM [Sales]<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</o:p></span></p>

<ol style='margin-top:0in' start=3 type=1>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo3'><span
     style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Select M2. It
     has been running for 5 minutes and hasn&#8217;t returned.<o:p></o:p></span></li>
</ol>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;
WITH<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>SET [#DataSet#] as 'NonEmptyCrossjoin(<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>{ [Product].[Food]},<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>{Descendants([Store].[USA], 1)}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>)'<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.25in'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>SELECT
{[Measures].[M1]} on columns, NON EMPTY Hierarchize({[#DataSet#]}) on rows FROM
[Sales]<span style='color:navy'><o:p></o:p></span></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Thank you,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Daphne<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<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>Julian Hyde<br>
<b>Sent:</b> Friday, August 21, 2009 3:52 AM<br>
<b>To:</b> 'Mondrian developer mailing list'<br>
<b>Subject:</b> RE: [Mondrian] Performance issue with large number of measures
inMondrian 3.0.4</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

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

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Lucida Sans","sans-serif";
color:navy'>I'd not noticed it. It looks exponential -- it doubles each time
you add a measure -- so it's definitely a concern. Can you construct a test
case on foodmart with enough measures to have truly abyssmal performance, then
log a bug. Looks like it's in some of the special logic in crossjoin to
'optimize' the non-empty case.</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<blockquote style='border:none;border-left:solid navy 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><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>Peter Tran<br>
<b>Sent:</b> Thursday, August 20, 2009 10:34 AM<br>
<b>To:</b> Mondrian developer mailing list<br>
<b>Subject:</b> [Mondrian] Performance issue with large number of measures
inMondrian 3.0.4</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Hi,</span><o:p></o:p></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Has anyone noticed a performance
issue with Mondrian 3.0.4 with regards to large number of measures in a
calculated measure?&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>We ran some test and got the
following results.&nbsp; We added one base measure at a time to the calculated
measure for the test.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>#
measures&nbsp;&nbsp;&nbsp;&nbsp; elapsed time<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>&nbsp;&nbsp;&nbsp;
9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
19.078<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>&nbsp;&nbsp;
10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
34.307<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>&nbsp;&nbsp;
11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
79.096<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>&nbsp;&nbsp;
12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
146.222&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Lucida Console";color:#1F497D'>&nbsp;&nbsp;
13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
304.365&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><img width=482 height=289
id="Chart_x005f_x0020_1" src="cid:image002.gif@01CA24A8.68E1E1E0"><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>It looks like it&#8217;s working
inside some recursive code.&nbsp; Any help or recommendation would be greatly
appreciated.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Stack trace: <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>java.util.HashMap.put(HashMap.java:372)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>java.util.HashSet.add(HashSet.java:200)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.process(CrossJoinFunDef.java:2089)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2070)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.MemberExpr.accept(MemberExpr.java:73)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.process(CrossJoinFunDef.java:2082)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2070)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.MemberExpr.accept(MemberExpr.java:73)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.process(CrossJoinFunDef.java:2082)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2070)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.MemberExpr.accept(MemberExpr.java:73)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.process(CrossJoinFunDef.java:2082)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2070)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.MemberExpr.accept(MemberExpr.java:73)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.process(CrossJoinFunDef.java:2082)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2070)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.MemberExpr.accept(MemberExpr.java:73)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:157)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef$MeasureVisitor.visit(CrossJoinFunDef.java:2048)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.ResolvedFunCall.accept(ResolvedFunCall.java:154)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.CrossJoinFunDef.nonEmptyList(CrossJoinFunDef.java:2196)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.NonEmptyCrossJoinFunDef$1.evaluateList(NonEmptyCrossJoinFunDef.java:68)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.calc.impl.AbstractListCalc.evaluate(AbstractListCalc.java:67)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.evaluateExp(RolapResult.java:794)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.access$100(RolapResult.java:46)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult$RolapResultEvaluatorRoot.evaluateNamedSet(RolapResult.java:1194)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapEvaluator.evaluateNamedSet(RolapEvaluator.java:884)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.mdx.NamedSetExpr$1.evaluateList(NamedSetExpr.java:78)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.SetFunDef$ListSetCalc$2.evaluateVoid(SetFunDef.java:149)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.SetFunDef$ListSetCalc.evaluateList(SetFunDef.java:204)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.olap.fun.HierarchizeFunDef$1.evaluateList(HierarchizeFunDef.java:48)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.calc.impl.AbstractListCalc.evaluate(AbstractListCalc.java:67)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.executeAxis(RolapResult.java:694)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.evalLoad(RolapResult.java:557)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.loadMembers(RolapResult.java:532)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapResult.&lt;init&gt;(RolapResult.java:254)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.rolap.RolapConnection.execute(RolapConnection.java:597)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.runQuery(CmdRunner.java:566)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.execute(CmdRunner.java:543)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.executeMdxCmd(CmdRunner.java:2243)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.commandLoop(CmdRunner.java:887)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.commandLoop(CmdRunner.java:750)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>mondrian.tui.CmdRunner.main(CmdRunner.java:2397)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Thanks!<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>-Peter<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</blockquote>

</div>

</body>

</html>