SeparateDataLoading: Boolean;
The SeparateDataLoading property determines whether data is loaded separately from the rest of task.
The property is relevant when working with various blocks in calculation algorithm, if they use different selection of the same data source.
Available values:
True. The Load Data Separately from the Rest checkbox in the calculation block's context menu will be selected. Separate data loading is executed quicker and reduces the total time of algorithm calculation. The checkbox is available for all block types.
False. The Load Data Separately from the Rest checkbox in the calculation block's context menu will be deselected. All data will be loaded in the beginning of algorithm calculation.
Executing the example requires that the repository contains a calculation algorithm 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(0) As IMsCalculationChainMetaModel;
MetaModelChain.SeparateDataLoading := True;
MetaModelChain := MetaModel.CalculationChain.Item(1) As IMsCalculationChainMetaModel;
MetaModelChain.SeparateDataLoading := True;
CalcAlgo.Save;
End Sub UserProc;
After executing the example, separate data loading is enabled for calculation blocks.
See also: