IInMemManager.PrepareDimension

Syntax

PrepareDimension(DimensionObj: IMetabaseObject);

Parameters

DimensionObj. Repository dictionary.

Description

The PrepareDimension method caches data of the specified dictionary.

Comments

When dictionaries are cached, information about elements (values of various dictionary attributes) is put to cache. If cache already contains cached dictionary data, it is updated.

Example

Executing the example requires that the repository contains a dictionary with the D_FACTS identifier.

Add links to the Cubes, Dimensions system assemblies. Metabase.

Sub UserProc;
Var
    Mb: IMetabase;
    InMem: IInMemManager;
Begin
    Mb := MetabaseClass.Active;
    InMem := 
New InMemManager.Create;
    
If InMem.UseCachedDimensions Then
        InMem.PrepareDimension(Mb.ItemById(
"D_FACTS").Bind);
    
End If;
End Sub UserProc;

After executing the example the data of the specified dictionary is added to cache.

See also:

IInMemManager