Thx Luc checking out.


On Tue, May 6, 2014 at 7:16 PM, Luc Boudreau <notifications@github.com>wrote:

> In src/main/mondrian/olap/fun/IsLeafFunDef.java:
>
> > +                // 2) ragged hierarchy
> > +                // 3) balanced hierarchy
> > +                if (rolapLevel.isParentChild()) {
> > +                    return rolapMember.isParentChildLeaf();
> > +                }
> > +                //Ragged: check if is a ragged hierarchy
> > +                if (rolapLevel.getHierarchy().isRagged()) {
> > +                    if (evaluator.getSchemaReader().getRole()
> > +                        .getAccessDetails(rolapMember.getHierarchy())
> > +                        .getBottomLevelDepth() == rolapLevel.getDepth())
> > +                    {
> > +                        return true;
> > +                    }
> > +                    return rolapLevel.getDimension()
> > +                        .getSchema().getSchemaReader()
> > +                        .getMemberChildren(rolapMember).size() == 0;
>
> This is a very expensive operation. (getMemberChildren()) There's probably
> a better way to do this.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pentaho/mondrian/pull/302/files#r12339593>
> .
>



-- 
Aníbal Fernandes
Development Team

http://www.webdetails.pt