PrepareDimension(DimensionObj: IMetabaseObject);
DimensionObj. Repository dictionary.
The PrepareDimension method caches data of the specified dictionary.
When caching dictionaries, information about elements (values of various dictionary attributes) is placed to cache. If cache already contains cached dictionary data, its is updated.
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;
On executing the example the data of the specified cube is added to cache.
See also: