[Mondrian] descendants of a member
julianhyde at speakeasy.net
Tue May 29 15:09:40 EDT 2007
I've no objection to that as long as you provide a default
implementation that various schema readers can use. Also please use
typed collections (e.g. List<Member>) rather than arrays - we're moving
away from arrays.
Note also that we have the ability to cache expression results. <a
member>.DESCENDANTS is being called many times in the same query, you
could generate a $Cache(<a member>.DESCENDANTS)
Be sure to test this functionality with NONEMPTY=true in the context.
That always breaks everything.
> -----Original Message-----
> From: mondrian-bounces at pentaho.org
> [mailto:mondrian-bounces at pentaho.org] On Behalf Of Anton Nikitin
> Sent: Tuesday, May 29, 2007 8:45 AM
> To: mondrian at pentaho.org
> Subject: [Mondrian] descendants of a member
> We really need a way to optimize DESCENDANTS MDX function in
> our custom
> Current contract for mondrian.olap.SchemaReader doesn't
> include any method
> to get member descendants (I'm sure it did in some earlier
> version). Instead
> there is mondrian.olap.fun.DescendantsFunDef which calculates
> descendants by
> requesting member children recursively.
> Is it possible to move this functionality into SchemaReader
> interface in
> order to let us overriding and optimizing it?
> Mondrian mailing list
> Mondrian at pentaho.org
More information about the Mondrian