LoaderBlockSize: Integer;
LoaderBlockSize: integer;
The LoaderBlockSize property determines size of loaded dictionary elements block.
On dynamic loading dictionary elements are loaded by blocks. If necessary, load new elements, then next block of specified size is loaded.
Only on dictionary creation property value can be set up.
Executing the example requires that the repository contains MDM table dictionary with set dynamic loading of elements and with the DYNDIM identifier.
Add links to the Dimensions and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Dim: IDynamicInstance;
Begin
MB := MetabaseClass.Active;
Dim := MB.ItemById("DYNDIM").Open(Null) As IDimInstance;
Debug.WriteLine("Size of loaded elements block: " + Dim.LoaderBlockSize.ToString);
End Sub UserProc;
After executing the example the console displays size of dictionary loaded elements block.
The requirements and result of the Fore.NET example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Dimensions;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Dim: IDynamicInstance;
Begin
MB := Params.Metabase;
Dim := MB.ItemById["DYNDIM"].Open(Null) As IDynamicInstance;
System.Diagnostics.Debug.WriteLine("Size of loaded elements block: " + Dim.LoaderBlockSize);
End Sub;
See also: