IMsCalculationChainMetaModel.SeparateDataLoading

Syntax

SeparateDataLoading: Boolean;

None;

Description

The SeparateDataLoading property determines whether data is loaded separately from the rest of task.

Comments

The property is relevant on working with various blocks in calculation algorithm, if it uses different selection of the same data source. If the SeparateDataLoading property is set to True, then the Load Data Separately from the Rest checkbox is selected in the calculation block context menu. Separate data loading is executed quicker and reduces the total time of algorithm calculation. The checkbox is available for all block types. If the property is set to False, the checkbox is deselected, all data is loaded at the algorithm calculation execution start.

Example

Executing the example requires a calculation algorithm for indicators with the ALGORITHM identifier. The algorithm contains two calculation blocks that are created on the same data source.

Add links to the Algo, Metabase, Ms system assemblies and theCalculation Algorithm Core custom assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    Algo: ICalcObject;
    CalcAlgo: ICalcAlgorithm;
    MetaModel: IMsMetaModel;
    MetaModelChain: IMsCalculationChainMetaModel;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"ALGORITHM");
    Algo := CalcObjectFactory.CreateCalcObject(MObj, 
True);
    CalcAlgo := Algo 
As ICalcAlgorithm;
    MetaModel := CalcAlgo.MetaModel;
    MetaModelChain := MetaModel.CalculationChain.Item(
0As IMsCalculationChainMetaModel;
    MetaModelChain.SeparateDataLoading := 
True;
    MetaModelChain := MetaModel.CalculationChain.Item(
1As IMsCalculationChainMetaModel;
    MetaModelChain.SeparateDataLoading := 
True;
    CalcAlgo.Save;
End Sub UserProc;

The property is not supposed to be used on Fore.NET.

On example execution, separate data loading is enabled for calculation blocks.

See also:

IMsCalculationChainMetaModel