IMetaHierarchy.LeafLoadExtent

Syntax

LeafLoadExtent: Integer;

Description

The LeafLoadExtent property limits the number of loaded leaf elements.

Comments

The bigger is the number of loaded leaf elements, the slower is the loading.

Example

Executing the example requires that the repository contains a time series database with the FC_COMM identifier. Add links to the Metabase, Cubes, Rds system assemblies.

Sub UserProc;
Var
   mb: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    HieDef: IMetaHierarchy;
    HieInst: IMetaHierarchyInstance;
    Mems: IMetaMembers;
Begin
    mb := MetabaseClass.Active;
    RubDesc := mb.ItemById("FC_COMM");
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.GetDictionary(RubricatorDictionary.Facts);
    HieDef := DictInst.Dictionary.DefaultHierarchy;
    HieDef.Attributes.MoveAllTo(HieDef.Attributes, HieDef.Levels.Leaf);
// Set limitation
    HieDef.LeafLoadExtent := 128;
    HieInst := DictInst.OpenHierarchy(HieDef);
    Mems := HieInst.GetRootMembers;
    Mems.Reset;
    Repeat
        Debug.WriteLine(Mems.Current.Name);
        Mems.Next;
    Until Not Mems.Eof;
End Sub UserProc;

After executing the example, root element names of time series database hierarchy with limitations are displayed in the console window.

See also:

IMetaHierarchy