PrepareDimension(DimensionObj: IMetabaseObject);
PrepareDimension(DimensionObj: Prognoz.Platform.Interop.Metabase.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;
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
Mb: IMetabase;
InMem: InMemManager = New InMemManagerClass();
Begin
Mb := Params.Metabase;
If InMem.UseCachedDimensions Then
InMem.PrepareDimension(Mb.ItemById["D_FACTS"].Bind());
End If;
End Sub;
On executing the example the data of the specified cube is added to cache.
See also: